Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created January 11, 2018 18:43
Show Gist options
  • Save rohan-molloy/76357232b6ea750cd08497ec8473156a to your computer and use it in GitHub Desktop.
Save rohan-molloy/76357232b6ea750cd08497ec8473156a to your computer and use it in GitHub Desktop.
alias Escape-HTML="sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g'; s/' '/&nbsp;/ | sed ':begin;$!N;s/\n/<br \/>/;tbegin'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment