Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

XHTML to HTML

Name: Anonymous 2007-03-17 22:26 ID:mmTvIK73

I'm currently working on a load of PHP to make my website show as XHTML with an application/xhtml+xml content-type to non-shitty browsers (Firefox, Opera, Safari) and as HTML with a text/html content-type to shitty browsers (Internet Explorer).

At this point I'm mostly done, but I've got one more minor issue that I want fix.

The code in both versions of the page has trailing slashes in some tags as is correct for XHTML, but I want to change that in the HTML version so "<br />"  becomes "<br>".

This is a very minor thing, but I'm fairly certain it can be done in PHP and would to do so.

Name: Anonymous 2007-03-18 15:50 ID:QgQVNiOY

>>8

I have been sitting here for the past hour trying various combinations of that code and have so far only managed to get the DOCTYPE at the bottom of the page in HTML version. No combination of that code (or any code whatsoever) has so far gotten me what I actually want.

Does anyone have any idea how the fuck to actually do what I want?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List