From 4feaa19ab266bca60388152b6c1f550d09b1184b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 26 Feb 2019 22:48:31 +0100 Subject: [PATCH] escaping features --- html-sh.sed | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; /^<\/!-->/{ -- 2.39.2