1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Move the escaping choice to the layout

This commit is contained in:
David Heinemeier Hansson 2018-06-07 14:41:17 +02:00
parent 228044c5c2
commit 206c04f716
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
<div class="trix-content"> <div class="trix-content">
<%= document %> <%=raw document %>
</div> </div>

View file

@ -54,7 +54,7 @@ module ActionText
end end
def to_html_with_layout def to_html_with_layout
ActionText.renderer.render(partial: "action_text/content/layout", locals: { document: to_html.html_safe }).html_safe ActionText.renderer.render(partial: "action_text/content/layout", locals: { document: to_html }).html_safe
end end
def to_s def to_s