アンパサンドをエンティティに変換
141 142 143
# File 'lib/helper.rb', line 141 def ampersand_to_entity(str) str.gsub(/&(?!amp;)/mi, "&") end