bBlog modifier htmlentities

recently ihandgestrickt had some IPTC-tags, that were originally encoded in ISO-8859-1. using the modifier htmlspecialchars did not work, but returned broken characters. even we tried the third argument "charset", as mentioned in the PHP-documentation. htmlentities did the job very well. and as the PHP-documentation mentions, htmlentities converts more, because it converts "every applicable" character to HTML-entities. so we wrote a htmlentities-modifier with all 3 arguments:

{$foo|htmlentities:ENT_COMPAT:"ISO-8859-1"}

Download

Sunday, 24. September 2006 • trackback url

Add Comment

( to reply to a comment, click the reply link next to the comment )

Comment Title:
Your Name:
Email Address:
Make Public?
Website:
Make Public?

Comment:


Allowed XHTML tags : a, b, i, strong, code, acrynom, blockquote, abbr. Linebreaks will be converted automatically.


Captcha:

captcha image

Soundfile:


please type the content of the above image or the soundfile into the following form-field: