Frage

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

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top