Bug 837748 - Refined the escapeHTML function and added unit testing
Merge pull request #8015 from crh0716/837748

Bug 837748 - Refined the escapeHTML function and added unit testing, r=timdream