Skip to content

Commit

Permalink
Add polyline as allowed svg tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Oct 10, 2024
1 parent d882927 commit dd6d99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def markdown_unsafe(source)
def sanitize(html)
@tags ||= Rails::Html::SafeListSanitizer.allowed_tags.to_a +
%w[table thead tbody tr td th colgroup col style summary details] +
%w[svg g style circle line rect path polygon text defs]
%w[svg g style circle line rect path polygon polyline text defs]
@attributes ||= Rails::Html::SafeListSanitizer.allowed_attributes.to_a +
%w[style target data-bs-toggle data-parent data-tab data-line data-element id] +
%w[viewBox width height version style class transform id x y rx ry x1 y1 x2 y2 d points fill stroke stroke-width stroke-dasharray cx cy r font-size font-family font-weight font-variant textLength writing-mode glyph-orientation-vertical text-orientation color]
Expand Down

0 comments on commit dd6d99d

Please sign in to comment.