From c7678aff1b11014160d64b82853d849ef4ce2465 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 2 Nov 2021 22:43:25 +0100 Subject: [PATCH] lib: fix escapeXML example in documentation The previous example output was forgotten copy-paste from some other function. --- lib/strings.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strings.nix b/lib/strings.nix index de135d1c2746..b2fd495e4c84 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -369,7 +369,7 @@ rec { Example: escapeXML ''"test" 'test' < & >'' - => "\\[\\^a-z]\\*" + => ""test" 'test' < & >" */ escapeXML = builtins.replaceStrings ["\"" "'" "<" ">" "&"]