Encode "special" html symbols like tag and attribute characters so they will not be interpreted by the browser.