ESDEV-2086 Ensure that function htmlspecialchars() and htmlentities() used correct way