all repos — cgit @ 13c2d3df0440ce04273de3149631a9bd97490c6e

a hyperfast web frontend for git written in c

filters: apply HTML escaping

http://www.w3.org/International/questions/qa-escapes#use
Lazaros Koromilas lostd@2f30.org
Wed, 15 Jul 2015 15:53:12 +0300
commit

13c2d3df0440ce04273de3149631a9bd97490c6e

parent

de83de276bef7509ab8255682595ad4521f3a193

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M filters/html-converters/txt2htmlfilters/html-converters/txt2html

@@ -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>"