"I wanted to show html tag in my asp.net form like if user type or <bracket> then it shuld there as it is. Tags are showing properly in IE chrome but not is Firefox. Is there special way to show?"
Yes - you have to do what is called HTML Encoding: if changes
<
to
<
and the latter then displays as the former! :laugh:
It's a bit of a PITA in javascript, but it is possible:
See here:
http://stackoverflow.com/questions/1219860/html-encoding-in-javascript-jquery[
^]
Which gave me this:
function htmlEscape(str) {
return String(str)
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
}
function htmlUnescape(value){
return String(value)
.replace(/"/g, '"')
.replace(/'/g, "'")
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/&/g, '&');
}