Re: Re: [SPAM] Re: [PHP] Old HTML convert to XHTML Class
| From: | Justin Patrin | Date: | Wed, 04 Aug 2004 22:14:01 +0000 |
| Subject: | Re: Re: [SPAM] Re: [PHP] Old HTML convert to XHTML Class | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192763@lists.php.net to get a copy of this message | ||
On Wed, 04 Aug 2004 23:55:12 +0200, Jay <jaynews2002@yahoo.se> wrote:
> Justin Patrin wrote:
> > On Wed, 04 Aug 2004 19:02:41 +0200, Jay <jaynews2002@yahoo.se> wrote:
> >
> >>Jay Blanchard wrote:
> >>
> >>>[snip]
> >>>Is there any class, functions etc that will convert old HTML to XHTML.
> >>>
> >>>I want to send in some HTML text and get XHTML back.
> >>>
> >>>e.g: the following would be converted:
> >>>in="<font face="verdana,arial,helvetica,sans-serif"
> >>>color="#0000cc"
> >>>size="2">hello</font>"
> >>>
> >>>out="<span style"font-family:verdana,arial,helvetica,sans-serif;
> >>>font-size: 10px; color:#0000cc">hello</span>"
> >>>[/snip]
> >>>
> >>>Have you searched phpclasses.org? Google?
> >>
> >>Yes i have searched but couldn´t find anything. Hard to search for
> >>becuase "PHP HTML to XHTML" brings up a lot of "Tech youself XHTML"
> >>pages.
> >>
> >>So i hoped someone knew about a commercial or Free class/functions i
> >>could use.
> >>
> >
> >
> > Since you can't use the tidy PHP extension, you could always use tidy
> > from the command-line.
> >
>
> Don´t i need good access to my webhost then?
>
> I thought Tidy was a error reporting tool, not a HTML to XHTML converter?
>
> I have a simple web account....with PHP and MySQL support.
>
> Thanx In Advance
>
If you can upload files and run system commands, you should be able to use it.
Tidy actually tidies up your HTML. ;-)
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--