lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.324 vs lib/lalala/markdown/html_renderer.rb in lalala-4.1.0.dev.332
- old
+ new
@@ -65,10 +65,10 @@
if content =~ /^\<(img|div|span|strong|em)/
content = helpers.raw(content)
end
options = (@options[:link_attributes] || {}).merge(title: title)
- helpers.link_to(content, link, options)
+ helpers.link_to(content.html_safe, link, options)
end
def enhanced_autolink(scheme, link, link_type)
handler = @link_schemes[scheme]
if handler