"BobK"
> Hello,
>
> I have some PHP Includes on my site. The Include data comes from
> another site and are written with a Transitional Doc Type. So the
> results have all of the
's shown as
.
Sounds more like XHTML.
> But my site is Strict 4.01 and I get validation errors for all the
> />'s.
>
> Is there a way to convert all the
's to
's?
Yes: post-process the data in PHP. This means that instead of including
the data you have to download it and post-process it with a search &
replace. This is not 100% fail-safe though. The best way would be to parse
the XHTML (which is XML), and then convert it to HTML 4.01 strict. On the
other hand, that might be overkill.
> Can you put
> something in the .htaccess file or somewhere to force a conversion?
No.
--
John Bokma http://johnbokma.com/