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:
parent
228044c5c2
commit
206c04f716
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
<div class="trix-content">
|
||||
<%= document %>
|
||||
<%=raw document %>
|
||||
</div>
|
||||
|
|
|
@ -54,7 +54,7 @@ module ActionText
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Reference in a new issue