Properly escape TeX data.

This commit is contained in:
Vicent Marti
2012-09-02 22:22:01 +02:00
parent 041b01f171
commit a8b230a490
+1 -1
View File
@@ -8,7 +8,7 @@ module Gollum
def self.to_html(tex, type = :inline)
tex_uri = EscapeUtils.escape_uri(tex)
tex_alt = EscapeUtils.escape_html(tex)
%{<img src="#{TEX_URL}?D=#{TEX_SIZES[type]};tex=#{tex}" alt="#{tex_alt}">}
%{<img src="#{TEX_URL}?D=#{TEX_SIZES[type]};tex=#{tex_uri}" alt="#{tex_alt}">}
end
end
end