FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
html entity double escaping
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=168279&th=120782#msg_168279
we cannot view these entities...
&
ß
'
&
because "&" is converted to "&" by default!
as i've seen and allready tried out in html mode, it works. but thats not the solution in this case! guess you're using the htmlentities() or htmlspecialchars() to escape those signs! please tell me where i can find the code where this replacement is done?
i would like to add the new parameter double_encode on using htmlentities(). this should fix this. htmlentities are not escaped twice then: & -!> & and will remain as & i hope...
thanks in advance
cheers,
dk]]>captain picard2013-04-08T12:32:05-00:00Re: html entity double escaping
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=168302&th=120782#msg_168302
Anyway, if you insist you can change tags_to_html() in post_proc.inc.t.]]>naudefj2013-04-14T06:59:05-00:00Aw: Re: html entity double escaping
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=168587&th=120782#msg_168587
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