]> git.plutz.net Git - cgilite/blobdiff - html-sh.sed
updated copyright line
[cgilite] / html-sh.sed
index cb1c613185356b03eac15be9fd59967f3b769784..8d7b61c076b93d3de8b59683e67d9b161ffc8075 100755 (executable)
@@ -1,4 +1,12 @@
-#!/bin/sed -nrf
+#!/bin/sed -nEf
+
+:Escapes
+s,\\\\,\\,g; s,\\&,\&,g;
+s,\\<,\&lt;,g; s,\\>,\&gt;,g;
+s,\\",\&quot;,g; s,\\',\&apos;,g;
+s,\\\[,\&#91;,g; s,\\\],\&#93;,g;
+s,\\\.,\&#46;,g; s,\\#,\&#35;,g;
+s,\\,,g;
 
 :CommentHandle
 x; /^<\/!-->/{
@@ -50,6 +58,7 @@ s;(<input ([^>]+ )?type=(checkbox|"checkbox"|'checkbox')( [^>]+)?)>[ \t]*(checke
 s;(<option( [^>]+)?)>[ \t]*(checked|selected);\1 selected="selected">;g;
 s;(<select( [^>]+)?)>[ \t]*multiple;\1 multiple="multiple">;g;
 t attribs;
+s;(<[^/][^>]*>)[ \t]*\.[ \t];\1;g;
 
 s;(<[^/][^>]*>)[ \t]*;\1;g;
 # s;(<[^/][^>]*)>[ \t]*</[^>]+>;\1/>;g;