lib/shell2html.rb in shell2html-0.0.3 vs lib/shell2html.rb in shell2html-0.0.4

- old
+ new

@@ -45,9 +45,10 @@ "107" => { css: "sh_bg_white", style: { "background-color" => "#ffffff" } } } def to_html(text, inline = false) count = 0 + text = CGI.escapeHTML(text) text.gsub!(/\n/, '<br>') text.gsub!(/ /, ' &nbsp;') text.split(27.chr).map do |e| if /^\[([0-9;]+)m(.*)$/.match e case $1