cookutils rev 258

cooker.cgi: syntax_highlighter should dehtmlize first
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 31 18:27:32 2011 +0200 (2011-05-31)
parents 50314f267be7
children 2db13a8fe9b4
files web/cooker.cgi
line diff
     1.1 --- a/web/cooker.cgi	Mon May 30 00:24:31 2011 +0200
     1.2 +++ b/web/cooker.cgi	Tue May 31 18:27:32 2011 +0200
     1.3 @@ -45,7 +45,8 @@
     1.4  				-e s"#ftp://\([^']*\).*#<a href='\0'>\0</a>#"g	\
     1.5  				-e s"#http://\([^']*\).*#<a href='\0'>\0</a>#"g ;;
     1.6  		receipt)
     1.7 -			sed -e s"#^\#\([^']*\)#<span class='sh-comment'>\0</span>#"g \
     1.8 +			sed -e s'|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|'g \
     1.9 +				-e s"#^\#\([^']*\)#<span class='sh-comment'>\0</span>#"g \
    1.10  				-e s"#\"\([^']*\)\"#<span class='sh-val'>\0</span>#"g ;;
    1.11  		diff)
    1.12  			sed -e 's|&|\&amp;|g' -e 's|<|\&lt;|g' -e 's|>|\&gt;|g' \