Question

I want to print a url in flexigrid columnn
i.e http://www.test.com?q=zys&y=<script>alert("A")</script>&n=y

But when I am trying to pass it using ajax its showing error. If I use tag then its solve the problem but mass up with formatting and , tag are not capable to solve my issue

Was it helpful?

Solution

Use &lt; and &gt; instead of < and >. That should do the trick

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top