[this will look stupid on the mailing list - look at it at drupal.org (see link below - in the mail!)]

e.g.
& to &
&lt; to <
&gt; to >
&quot; to "
&#039; to '
&nbsp; to [haha]
etc.

because
  &nbsp;&nbsp;&lt;span style="color: red;"&gt;*&lt;/span&gt;
(from a previous post) just isn't really accessible ;)

see also http://www.php.net/manual/en/function.htmlentities.php (incl. sample implementation)

Comments

Kjartan’s picture

Assigned: Unassigned » Kjartan

Fixed (just have to test and commit it).

ax’s picture

it does work for almost all the mentioned entities, just not the &#039; (and probably all other Character References - see http://www.utoronto.ca/webdocs/HTMLdocs/NewHTML/entities.html)

Kjartan’s picture

There is no easy PHP way to deal with that AFAIK. Not sure its worth the effor either.. how many people use those codes regularly (ie, more than once or twice a year)?

Kjartan’s picture

Priority: Major » Normal

Closing.