X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=html-sh.sed;h=3f63b3d6fecf14dfd8808a3d58f655ff173e3040;hp=514caafccaf81863f5254602f1a495363638e4f0;hb=4feaa19ab266bca60388152b6c1f550d09b1184b;hpb=441856d88c45de3a8a12a8e3ac74f23f3d9b273b diff --git a/html-sh.sed b/html-sh.sed index 514caaf..3f63b3d 100755 --- a/html-sh.sed +++ b/html-sh.sed @@ -1,4 +1,12 @@ -#!/bin/sed -nrf +#!/bin/sed -nEf + +:Escapes +s,\\\\,\\,g; s,\\&,\&,g; +s,\\<,\<,g; s,\\>,\>,g; +s,\\",\",g; s,\\',\',g; +s,\\\[,\[,g; s,\\\],\],g; +s,\\\.,\.,g; s,\\#,\#,g; +s,\\,,g; :CommentHandle x; /^<\/!-->/{