added htmlEscapingEnabled flag for XSS vulnerability and added correspon...

...ding test cases. changed Javadoc #10