hi - i have a function that strips html entities such as '	' etc:
..but is there a way to convert the entities back to normal chars? eg: 'a' would be coverted to 'a'
cheers - dave
Code:
option explicit
dim tmp
tmp=request.querystring("s")
response.write strip(tmp)
function strip(tmp)
dim x,i
set x=new regexp
x.global=true
x.ignorecase=true
x.pattern="\&([#a-zA-Z0-9]+);"
tmp=x.replace(tmp,"")
set x=nothing
strip=tmp
end function
..but is there a way to convert the entities back to normal chars? eg: 'a' would be coverted to 'a'
cheers - dave