Replace all occurances of </ in fragment when extracting parameters to prevent XSS