Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
redef fun rendering do
add "<a{render_css_classes} href=\"{href}\""
var title = self.title
- if title != null then add " title=\"{title.write_to_string}\""
+ if title != null then add " title=\"{title.html_escape}\""
add ">{text}</a>"
end
end
redef class MDoc
# Synopsis HTML escaped.
- var synopsis: String is lazy do return content.first.html_escape
+ var synopsis: String is lazy do return content.first
# Comment without synopsis HTML escaped
var comment: String is lazy do
end
var mdoc = self.mdoc_or_fallback
if title == null and mdoc != null then
- title = mdoc.synopsis.html_escape
+ title = mdoc.synopsis
end
return new Link(html_url, text, title)
end