aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/xml.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/format/xml.lux')
-rw-r--r--stdlib/source/library/lux/data/format/xml.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/data/format/xml.lux b/stdlib/source/library/lux/data/format/xml.lux
index 54e544583..b978eb195 100644
--- a/stdlib/source/library/lux/data/format/xml.lux
+++ b/stdlib/source/library/lux/data/format/xml.lux
@@ -200,11 +200,11 @@
(def: (sanitize_value input)
(-> Text Text)
(|> input
- (text.replace_all "&" "&")
- (text.replace_all "<" "&lt;")
- (text.replace_all ">" "&gt;")
- (text.replace_all "'" "&apos;")
- (text.replace_all text.double_quote "&quot;")))
+ (text.replaced "&" "&amp;")
+ (text.replaced "<" "&lt;")
+ (text.replaced ">" "&gt;")
+ (text.replaced "'" "&apos;")
+ (text.replaced text.double_quote "&quot;")))
(def: .public (tag [namespace name])
{#.doc (doc "The text format of a XML tag.")}