Skip to content

Instantly share code, notes, and snippets.

@adipriyantobpn
Forked from AggroBoy/gist:1242257
Created February 10, 2017 21:04
Show Gist options
  • Save adipriyantobpn/92b56a624fbe5bdad21542de78dcd9f0 to your computer and use it in GitHub Desktop.
Save adipriyantobpn/92b56a624fbe5bdad21542de78dcd9f0 to your computer and use it in GitHub Desktop.
XML escaping SED script
sed -e 's~&~\&amp;~g' -e 's~<~\&lt;~g' -e 's~>~\&gt;~g' -e 's~\"~\&quot;~g' -e "s~\'~\&apos;~g"
@adipriyantobpn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment