Tomer's answer is correct and that is the way that I would do it. But there is an alternative that uses JavaScript. You can remove the HTML of an element, and add it back as text using createTextNode()
. Pass an element to this function:
function revealElementHTML(el) {
var html = el.innerHTML;
el.innerHTML = "";
el.appendChild(document.createTextNode(html));
}