Updated the test TestPassFail.lua to check for more issues.
Add new method string.escapeHTML() into the module string.lua.
Special HTML characters should be properly escaped in HTML output.
Special HTML/XML characters should be properly escaped in XML output.