From: Paul Hänsch Date: Tue, 26 Feb 2019 21:48:31 +0000 (+0100) Subject: escaping features X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=4feaa19ab266bca60388152b6c1f550d09b1184b;p=clickslide escaping features --- 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; /^<\/!-->/{