From: Paul Hänsch Date: Mon, 9 Dec 2019 23:41:48 +0000 (+0100) Subject: introduce . as stop sign to prevent parsing text as attributes X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=84e1d6938743a21a912420cc4ba5dc08a7c48155;p=cgilite introduce . as stop sign to prevent parsing text as attributes --- diff --git a/html-sh.sed b/html-sh.sed index 976d42e..16aeb9a 100755 --- a/html-sh.sed +++ b/html-sh.sed @@ -48,6 +48,7 @@ t tagopen; G; h; s;^[^\n]*\n+;;; x; s;\n.*$;;; :attribs +s;(<[^/][^>]*)>[ \t]*\.[ \t];\1>;g; t attEnd; s;class="([^>]+)>[ \t]*\.([^< \t]+);class="\2 \1>;g; t attribs; s;(<[^/][^>]*)>[ \t]*\.([^< \t]+);\1 class="\2">;g; s;(<[^/][^>]*)>[ \t]*#([^< \t]+);\1 id="\2">;g; @@ -58,6 +59,7 @@ s;(]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checke s;(]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g; s;(]+)?)>[ \t]*multiple;\1 multiple="multiple">;g; t attribs; +:attEnd s;(<[^/][^>]*>)[ \t]*;\1;g; # s;(<[^/][^>]*)>[ \t]*]+>;\1/>;g;