Skip to content

Commit 3babb23

Browse files
committed
Merge pull request gtd#4 from r38y/master
Little tweak to make it work with Rails 3.0.9
2 parents 2607117 + 68c7982 commit 3babb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/acts_as_sanitiled.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def write_attribute(attr_name, value)
115115

116116
private
117117
def strip_html(html)
118-
html.gsub!(%r{</p>\n<p>}, "</p>\n\n<p>") # Workaround RedCloth 4.2.x issue
118+
html = html.gsub(%r{</p>\n<p>}, "</p>\n\n<p>") # Workaround RedCloth 4.2.x issue
119119
Nokogiri::HTML::DocumentFragment.parse(html).inner_text
120120
end
121121
end

0 commit comments

Comments
 (0)