Fix glm by adding id and classes to sanitize white attrs

This commit is contained in:
randx 2012-09-02 15:25:54 +03:00
parent beb5e1bd6b
commit aecbd313bc

View file

@ -31,7 +31,7 @@ module GitlabMarkdownHelper
extractions[$1] extractions[$1]
end end
sanitize text.html_safe sanitize text.html_safe, attributes: ActionView::Base.sanitized_allowed_attributes + %w(id class )
end end
# Use this in places where you would normally use link_to(gfm(...), ...). # Use this in places where you would normally use link_to(gfm(...), ...).