You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example :
var encodedHTML = "<b>"
var decodedHTML = encodedHTML.unescapeHTML();
//Result : "<b>"
//This is wrong it should be
should be :
function unescapeHTML() {
return this.stripTags().replace(/</gi,'<').replace(/>/gi,'>').replace(/&/gi,'&');
}
The text was updated successfully, but these errors were encountered:
We may address this, but it's also important to remember that HTML entities are case-sensitive, and that < is technically not the same as <, even though browsers may treat them as the same thing for increased compatibility.
Example :
var encodedHTML = "<b>"
var decodedHTML = encodedHTML.unescapeHTML();
//Result : "<b>"
//This is wrong it should be
should be :
function unescapeHTML() {
return this.stripTags().replace(/</gi,'<').replace(/>/gi,'>').replace(/&/gi,'&');
}
The text was updated successfully, but these errors were encountered: