-
-
Save ryanmaclean/5c75597c3a65ec4b7c21 to your computer and use it in GitHub Desktop.
Escape XML with Sed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -e 's~&~\&~g' -e 's~<~\<~g' -e 's~>~\>~g' -e 's~\"~\"~g' -e "s~\'~\'~g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment