Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

Commit

Permalink
Fixed an error in Rails 3.0.9 where it gets angry if you try to modif…
Browse files Browse the repository at this point in the history
…y a string in-place (Cannot modify SafeBuffer in place)
  • Loading branch information
r38y committed Jun 29, 2011
1 parent 2607117 commit 68c7982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_sanitiled.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def write_attribute(attr_name, value)

private
def strip_html(html)
html.gsub!(%r{</p>\n<p>}, "</p>\n\n<p>") # Workaround RedCloth 4.2.x issue
html = html.gsub(%r{</p>\n<p>}, "</p>\n\n<p>") # Workaround RedCloth 4.2.x issue
Nokogiri::HTML::DocumentFragment.parse(html).inner_text
end
end
Expand Down

0 comments on commit 68c7982

Please sign in to comment.