Project

General

Profile

Bug #8302 » text_normalize.patch

ohai (Ippei Obayashi), 04/20/2013 05:29 PM

View differences:

lib/rexml/text.rb
doctype.entities.each_value do |entity|
copy = copy.gsub( entity.value,
"&#{entity.name};" ) if entity.value and
not( entity_filter and entity_filter.include?(entity) )
not( entity_filter and entity_filter.include?(entity.name) )
end
else
# Replace all ampersands that aren't part of an entity
(2-2/2)