Skip to content

Instantly share code, notes, and snippets.

@bgstack15

bgstack15/htmlize

Created Dec 6, 2017
Embed
What would you like to do?
Htmlize function
htmlize () { $( which sed ) -r -e 's/</\xCAlt;/g;' -e 's/>/\xCAgt;/g;' -e 's/\&/\&/g;' -e 's/\xCA([lg])t;/\&\1t;/g;' ; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment