mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
#render already provides something html_safe
This commit is contained in:
parent
206c04f716
commit
2f530577ce
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
ActionText.renderer.render(partial: "action_text/content/layout", locals: { document: to_html })
|
||||
end
|
||||
|
||||
def to_s
|
||||
|
|
Loading…
Reference in a new issue