Re: Text_Wiki: Transforming to XHTML without encoding entities?

From: Date: Thu, 06 Nov 2008 13:48:02 +0000
Subject: Re: Text_Wiki: Transforming to XHTML without encoding entities?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51016@lists.php.net to get a copy of this message
On Thursday 06 November 2008 14:14:39 Charl Mert wrote: > Hi All, > > I'm using this class to transform Wiki markup to Xhtml in the wiki module > written for Chisimba framework. > We ran into some problems with displaying utf-8 chars like "wêreld, > reënboognasie Voël". On a side note, this most often results from using htmlentities() with the wrong encoding (latin1 is assumed if none is passed) > I've added the option to transform without encoding the htmlentities by > playing with the translate config option in Xhtml.php > Does Xhtml standards specify htmlentity encoding as a MUST? No, actually it's quite useless except in the case that you use a non-unicode character set for your xhtml document and want to use unicode chars that are not in this character set. You only have to encode things that could be interpreted as markup in the current context, since doing contextsensitive encoding is pretty complicated most of the time you just encode <>&"' everywhere (htmlspecialchars with ENT_QUOTES). > I would like to register with pear dev and post these if the changes are > welcome/legal. You can subscribe at https://pear.php.net/support/lists.php - if that's what you mean by registering. Best regards, Stefan

« previous php.pear.dev (#51016) next »