Upgrading the function html_escape(), escaping twice can be prevented by setting the second argument to FALSE.
Upgrading the function html_escape() - documentation corrections.
Upgrading the function html_escape() - readability improvement.
Upgrading the function html_escape() - Readability Improvement 2.
Upgraded html_escape()  - The simplest version.
Merge pull request #3204 from ivantcholakov/feature/html-escape-upgrade

Upgrading the function html_escape()