Project

General

Profile

Bug #12609 ยป quot-change.patch

patch to correctly use the entity character. - jmarrero (Joseph Marrero), 07/21/2016 06:19 PM

View differences:

lib/rexml/attribute.rb (working copy)
# b.to_string # -> "ns:x='y'"
def to_string
if @element and @element.context and @element.context[:attribute_quote] == :quote
%Q^#@expanded_name="#{to_s().gsub(/"/, '&quote;')}"^
%Q^#@expanded_name="#{to_s().gsub(/"/, '"')}"^
else
"#@expanded_name='#{to_s().gsub(/'/, ''')}'"
end
    (1-1/1)