summaryrefslogtreecommitdiff
path: root/nocompile/bin/encode_html_entities
blob: e2bcf30c373db9cbb3afc5702615e04871529993 (plain) (blame)
1
2
3
4
5
#!/bin/sh
sed "s/&/\&/g" \
 | sed "s/</\&lt;/g" \
 | sed "s/>/\&gt;/g" \
 | sed 's/"/\&quot;/g'