Hi
I am the following encoder to unencode by < symbol. This unencoder worked for   quite well. Thanks to Adam again.
String.prototype.htmlUnencode = function(){
var div = document.createElement("div");
div.innerHTML = this;
return div.innerText;
}
var str = "<sometext";
str.htmlUnecnode(); - this returns me a blank string always.
I am trying to find if a string contains "<" symbol using indexOf function. For that I am unecodign the String then passing to indexOf function.
Where am I going wrong.
thanks
I am the following encoder to unencode by < symbol. This unencoder worked for   quite well. Thanks to Adam again.
String.prototype.htmlUnencode = function(){
var div = document.createElement("div");
div.innerHTML = this;
return div.innerText;
}
var str = "<sometext";
str.htmlUnecnode(); - this returns me a blank string always.
I am trying to find if a string contains "<" symbol using indexOf function. For that I am unecodign the String then passing to indexOf function.
Where am I going wrong.
thanks