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

Commit

Permalink
Merge pull request #4 from r38y/master
Browse files Browse the repository at this point in the history
Little tweak to make it work with Rails 3.0.9
  • Loading branch information
gtd committed Jul 3, 2011
2 parents 2607117 + 68c7982 commit 3babb23
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 3babb23

Please sign in to comment.