mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 01:48:41 +00:00
filters: apply HTML escaping
http://www.w3.org/International/questions/qa-escapes#use
This commit is contained in:
parent
de83de276b
commit
13c2d3df04
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
echo "<pre>"
|
||||
cat
|
||||
sed "s|&|\\&|g;s|'|\\'|g;s|\"|\\"|g;s|<|\\<|g;s|>|\\>|g"
|
||||
echo "</pre>"
|
||||
|
Loading…
Reference in New Issue
Block a user