filters: apply HTML escaping

http://www.w3.org/International/questions/qa-escapes#use
This commit is contained in:
Lazaros Koromilas
2015-08-12 14:13:44 +02:00
committed by Jason A. Donenfeld
parent de83de276b
commit 13c2d3df04
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
echo "<pre>"
cat
sed "s|&|\\&amp;|g;s|'|\\&apos;|g;s|\"|\\&quot;|g;s|<|\\&lt;|g;s|>|\\&gt;|g"
echo "</pre>"