summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-26 14:22:33 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-26 14:22:33 +0200
commit536646a13c008b2ebcee8a4f25e7c011a8eb4a8b (patch)
treec4648f632faf18d14f3b79fdf32e9623d43afd6e /config
parent811bb04649365b0faaa00b1e0810bb101a4d19b1 (diff)
Fix RSS feeds, xmlparser initializer
Diffstat (limited to 'config')
-rw-r--r--config/initializers/xmlparser.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/config/initializers/xmlparser.rb b/config/initializers/xmlparser.rb
index 9c3f1c8..1d5e06d 100644
--- a/config/initializers/xmlparser.rb
+++ b/config/initializers/xmlparser.rb
@@ -1,14 +1,19 @@
1class XML::Node 1class XML::Node
2 def replace_with(other) 2 def replace_with(other)
3 self.next = other 3 self.next = other
4 remove! 4 remove!
5 end 5 end
6end 6end
7 7
8# Builder 3.x escapes content by default. Override _escape to pass text
9# through raw, preserving existing behaviour from the Rails 2 era.
10# Note: require builder first to ensure XmlBase < BasicObject is already
11# defined before we reopen it.
12require 'builder'
8module Builder 13module Builder
9 class XmlBase 14 class XmlBase
10 def _escape(text) 15 def _escape(text)
11 text 16 text
12 end 17 end
13 end 18 end
14end \ No newline at end of file 19end