From: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Thu, 15 Aug 2024 00:02:58 -0500
Subject: Replace ">" symbol with encoded version

---
 lib/xml/dom/core.rb  | 2 ++
 lib/xml/dom2/attr.rb | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/xml/dom/core.rb b/lib/xml/dom/core.rb
index ab260e7..6a157ee 100644
--- a/lib/xml/dom/core.rb
+++ b/lib/xml/dom/core.rb
@@ -1846,6 +1846,8 @@ return the string representation of the Attr.
             value << "&quot;"
           when ?<
             value << "&lt;"
+	  when ?>
+	    value << "&gt;"
           else
             value << code
           end
diff --git a/lib/xml/dom2/attr.rb b/lib/xml/dom2/attr.rb
index 53bb911..775ffa1 100644
--- a/lib/xml/dom2/attr.rb
+++ b/lib/xml/dom2/attr.rb
@@ -122,7 +122,9 @@ return the string representation of the Attr.
             value << "&quot;"
           elsif c == "<"
             value << "&lt;"
-          else
+          elsif c == ">"
+	    value << "&gt;"
+	  else
             value << c
           end
         end
