Add anti-xss function

Add an anti-xss function to the plugin