I want to know that how to insert javascript or string which contains html tags.
e.g. <div>Hello</div><script></script>
I want to store and retrieve above menthioned example as string format.?
I tried but browser gives error about cross site scripting.
so how can Insert it to database.
or is there any encoding and decoding technique by which i can perform this kind of operation.