-
-
Save adipriyantobpn/92b56a624fbe5bdad21542de78dcd9f0 to your computer and use it in GitHub Desktop.
XML escaping SED script
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
SOURCE :
http://www.daemonforums.org/showthread.php?t=4054
improved by
https://gist.github.com/AggroBoy/1242257