Re: Extended escape modifier

From: Date: Fri, 29 Jun 2001 05:05:37 +0000
Subject: Re: Extended escape modifier
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1084@lists.php.net to get a copy of this message
Hi, Monte Ohrt wrote:
are you talking about legal syntax, or legal entities? maybe that is where I am confused. legal entity. If you have a validating XML parser, each entity
must registered in the DTD to be able to appear unencoded in the XML data fields.
For instance, if I have &biteme; (not legal html entity) in an XML document, is that a legal syntax, or must it be escaped? so é can appear just like that but &bitems; would be
escaped to &bitems; because it is not a valid HTML for the RSS DTD. Of course, most parsers are not validating parsers to leaving &bitems; would be OK most of the time. And the set of valid entities depends on the DTD which changes for each document. I used the one for RSS which allows encoded HTML to be embedded in the data fields, and hence registers HTML entities... XML is much too complicated ;-) Maybe should rename the "xml" escape to "rss" and add another one which you escape everything except < and & which are always legal. Mike

« previous php.smarty.general (#1084) next »