Skip to content

Commit

Permalink
update for edgey goodness
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jan 5, 2007
1 parent 75ca7fd commit 68b1b12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/acts_as_textiled.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def write_attribute(attr_name, value)
def strip_redcloth_html(html)
returning html.dup.gsub(html_regexp, '') do |h|
redcloth_glyphs.each do |(entity, char)|
h.gsub!(entity, char)
sub = [:gsub!, entity, char]
h.respond_to?(:chars) ? h.chars.send(*sub) : h.send(*sub)
end
end
end
Expand Down

0 comments on commit 68b1b12

Please sign in to comment.