[ic] HTML Special Entities

Peter peter at pajamian.dhs.org
Thu May 13 11:28:48 UTC 2010

On 13/05/10 20:02, Stefan Hornburg (Racke) wrote:
> On 05/12/2010 04:51 PM, Jon Jensen wrote:
>> On Wed, 12 May 2010, Stefan Hornburg (Racke) wrote:
>>> we are working on getting a site properly HTML validated. One of the
>>> problems are menus or categories from the database containing an
>>> ampersand like Dungeons & Dragons.
>>> I wrote the following filter for this and the other HTML special
>>> entities:
>> Isn't that what the encode_entities filter is for?
> This filter encodes way too much.

Perhaps, but how many different filters should we have that encode
entities?  The next person who comes along may want to code a different
set of characters maybe, then we have three encode entity filters?

How about modifying the existing filter so that you can pass a custom
list of characters to encode instead?


More information about the interchange-users mailing list