Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

jquery unescape html

function decodeEntities(encodedString) {
  var textArea = document.createElement('textarea');
  textArea.innerHTML = encodedString;
  return textArea.value;
}

console.log(decodeEntities('1 & 2')); // '1 & 2'
 
PREVIOUS NEXT
Tagged: #jquery #unescape #html
ADD COMMENT
Topic
Name
2+5 =