Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Using HTML rather than XHTML for publishing content
There is a lot of interesting debate going on at the moment about the rights and wrongs of using HTML 4 Strict rather than XHTML: Dave Shea’s piece ‘Switched’ being a good example and a worthwhile read.
I’m not wanting to get into that debate here, but was wondering whether it is possible to make TXP output HTML rather than XHTML when publishing content by default (obviously, we can do whatever we want with presentation, just thinking about content publishing).
Any thoughts?
Offline
Re: Using HTML rather than XHTML for publishing content
Hi Andrew, I guess that you can include any DOCTYPE you want. The main problem will be the way the content is encoded if you use textile at which case you could edit classTextile.php to omit xhtml specific tags.
It is interesting however that Dave Shea’s text is written in xhtml1.0 strict.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Using HTML rather than XHTML for publishing content
…plus: All Textpattern tags render XHTML where appropriate so you’d have to hack taghandlers.php
as well.
Offline
Re: Using HTML rather than XHTML for publishing content
wet wrote:
…plus: All Textpattern tags render XHTML where appropriate so you’d have to hack
taghandlers.php
as well.
…or onload parse the page with XHTML-to-HTML converter. Semi-solution is to just replace />
with >
.
Jon-Michael’s jmd_html plugin does that.
Last edited by Gocom (2009-06-10 11:44:09)
Offline