lib/trac-wiki/parser.rb in trac-wiki-0.0.4 vs lib/trac-wiki/parser.rb in trac-wiki-0.0.5
- old
+ new
@@ -202,12 +202,12 @@
# method can be overridden to generate custom
# markup, for example to add html additional attributes or
# to put divs around the imgs.
def make_image(uri, alt='')
if alt
- "<img src='" << escape_html(uri) << "' alt='" << escape_html(alt) << "'/>"
+ "<img src=\"" << escape_html(uri) << "\" alt=\"" << escape_html(alt) << "\"/>"
else
- "<img src='" << escape_html(uri) << "'/>"
+ "<img src=\"" << escape_html(uri) << "\"/>"
end
end
def make_headline(level, text)
"<h#{level}>" << escape_html(text) << "</h#{level}>"