/ Published in: JavaScript
This code converts decode encoded UTF-8 characters. So á will be converted back to á ("a with acute").
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var text; if (text.match(/\&[^;]+\;/gi,text) && document) { var div = document.createElement('div'); div.innerHTML = text.replace(/\&\;/gi,'&'); text = div.innerHTML; }