Bug #12609 ยป quot-change.patch
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(/"/, '"e;')}"^
|
||
%Q^#@expanded_name="#{to_s().gsub(/"/, '"')}"^
|
||
else
|
||
"#@expanded_name='#{to_s().gsub(/'/, ''')}'"
|
||
end
|