readded richtext escaping.

php's html_entity_decode function has a breaking change concerning it's default values going from 5.3 to 5.4.
so we have to make sure to supply php 5.3 compatible usage, we must explicitly set the former defaults.
see http://php.net/manual/en/function.html-entity-decode.php