Re: Extended escape modifier

From: Date: Thu, 28 Jun 2001 21:36:33 +0000
Subject: Re: Extended escape modifier
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1078@lists.php.net to get a copy of this message
Monte Ohrt wrote:
How does this xml escaping work? Does it just turn a "&" into a "&" if it is followed by something like "foo;" ? If so, there is probably a much simpler way: preg_replace("!&([\w\d]+);!", "&\\1;",$string); well I guess that would catch most cases yeah. I was
wanting to be more strict in preserve only entities that are legal in the RSS DTD [1]. Mike [1] http://my.netscape.com/publish/formats/rss-0.91.dtd

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