Created
July 25, 2010 09:31
Revisions
-
DaveEveritt revised this gist
Jul 25, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ ### Simple-as-possible regular expression to fix unquoted html/xhtml width/height attributes: find: `(width|height)=([\d]+)` replace: `$1="$2"` #### Example result: find: `<img src="myimage.png" height=20 width=200 />` -
DaveEveritt revised this gist
Jul 25, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ find: replace: `$1="$2"` ##### Example result: find: `<img src="myimage.png" height=20 width=200 />` -
DaveEveritt revised this gist
Jul 25, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #### Simple-as-possible regular expression to fix unquoted html/xhtml width/height attributes: find: `(width|height)=([\d]+)` -
DaveEveritt revised this gist
Jul 25, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #### Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes: find: `(width|height)=([\d]+)` -
DaveEveritt revised this gist
Jul 25, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Simple-as-possible regular expression to fix unquoted html/xhtml width or height attributes: find: `(width|height)=([\d]+)` -
DaveEveritt created this gist
Jul 25, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ Regular expression to fix unquoted html/xhtml width or height attributes: find: `(width|height)=([\d]+)` replace: `$1="$2"` Example result: find: `<img src="myimage.png" height=20 width=200 />` replace: `<img src="myimage.png" height="20" width="200" />`