<script>
var encodedStr = "This is fun & stuff";
var decoded = $("<div/>").html(encodedStr).text();
console.log(decoded);
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div/>
var encodedStr = "This is fun & stuff";
var decoded = $("<div/>").html(encodedStr).text();
console.log(decoded);
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div/>
function decodeEntities(encodedString) {
var textArea = document.createElement('textarea');
textArea.innerHTML = encodedString;
return textArea.value;
}
console.log(decodeEntities('1 & 2')); // '1 & 2'
Code Example |
---|
Html :: flip an image js |
Html :: which text is used to create text animations in html |
Html :: smarty print html |
Html :: add html to page chrome extension |
Html :: bootstrap 5 card common |
Html :: how to make text in html |
Html :: load image file from input in html |
Html :: image on text in bootstrap |
Html :: form row twig symfony |
Html :: fork me github code |
Html :: bootstrap table no border |
Html :: collapse bootstrap |
Html :: html input attributes |
Html :: scroll to section href |
Html :: email validator hmtl |
Html :: how to put the heading in th ecenter of th html page |
Html :: navbar html mdn |
Html :: favicon |
Html :: react font color |
Html :: html popup form |
Html :: confirmed button bootstrap |
Html :: nunjucks loop n times |
Html :: tag field |
Html :: mat-icon outline |
Html :: boostrap grid |
Html :: html adding image |
Html :: button animation |
Html :: HTML5 Video tag not working Safari iPhone iPad video webpage supported |
Html :: html to pdf react |
Html :: typo3 link |