Skip to content

Instantly share code, notes, and snippets.

@cjramki
Created March 13, 2014 06:56
Show Gist options
  • Save cjramki/9523057 to your computer and use it in GitHub Desktop.
Save cjramki/9523057 to your computer and use it in GitHub Desktop.
function convertPlainText(content) {
return content.replace(/</g,"&lt;").replace(/>/g,"&gt;");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment