summaryrefslogtreecommitdiff
path: root/lib/rexml/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r--lib/rexml/attribute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index e9917cf52d8..ca5984e178f 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -110,7 +110,7 @@ module REXML
# 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