Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-10 08:41:11

ndrwtrvrs
Member
From: London
Registered: 2008-04-03
Posts: 25
Website

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

#2 2009-06-10 08:53:20

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#3 2009-06-10 10:11:25

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

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

#4 2009-06-10 11:40:35

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

Board footer

Powered by FluxBB