Use pre-generated HTML entities instead

PHP htmlentities() function somewhat doesn't encode string into entities
and there is no way to configure this behaviour the way I need.