HTML to XML Converter

function convert(){
var ele1 = document.getElementById(“somewhere”);
var replaced;
replaced = ele1.value;
replaced = replaced.replace(//ig, “>”);
replaced = replaced.replace(/”/ig, “"”);
replaced = replaced.replace(/±/ig, “±”);
replaced = replaced.replace(/©/ig, “©”);
replaced = replaced.replace(/®/ig, “®”);
replaced = replaced.replace(/howdy/ig, “ya’ll”);
ele1.value = replaced;
}