FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » html entity double escaping (how to fix that)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Aw: Re: html entity double escaping [message #168587 is a reply to message #168302] Tue, 28 May 2013 07:11 Go to previous message
captain picard is currently offline  captain picard   Austria
Messages: 15
Registered: March 2013
Karma:
Junior Member
Thanks, I did so.
It's working now as expected for me!

Inserting unicode characters would need a complete map, sometimes i need things like ← → which are simple to remember.

changes:

$str = htmlspecialchars($str);

in tags_to_html() of forumcache/src/post_print.inc.t to the following

$str = htmlspecialchars($str, ENT_QUOTES | ENT_COMPAT | ENT_HTML401, "UTF-8", FALSE);
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: SQL optimization join
Next Topic: Using PHP can we create any mobile applications?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jan 15 22:35:28 GMT 2025

Total time taken to generate the page: 0.04210 seconds