Create an XSSTool Viewtool
We need to create an XSSTool view tool so web developers can easily deal with XSS type issues. It should be mapped to $xss and wrap our Xss.class. It should be in the "application" scope and have 3 methods:
strip(String) hasXss(String) escape(Sring)
We already have something like that
<tool>
<key>xsstool</key>
<scope>application</scope>
<class>com.dotmarketing.viewtools.XssWebAPI</class>
</tool>
And it follows the scripting enabled security guidelines
The class here is a good start, but where is the documentation?
http://dotcms.com/docs/latest/TableOfContents?q=xsstool
Also, javadocs? We need to be very mindful of documenting our APIs and method names that we expose to end users. They need to be clear, concise and make sense. I am going to commit one that is a bit easier to use for a web developer in velocity
So a method and javadoc was added
Merged to master and master-2.5
Fixed, tested on 3.2.3