So I'm trying to get my website to find certain text and replace it with an <img> tag using this code...
function Emote() {
var stringg = document.getElementsByClassName("Post").innerHTML;
var resolutionn = stringg.replace("xD", "<img src='Icons/xD.gif' width='100px' height='100px' />")
document.getElementsByClassName("demo").innerHTML = resolutionn;
}
Emote();
When I debug with Firebug it outputs this...
