Javascript: encode(decode) html text into html entity - Gist is a simple way to share snippets of text and code with others.