git.iko.soy/typeable/nixpkgs
on master help sign in
lib: fix escapeXML example in documentation

The previous example output was forgotten copy-paste from some other function.

commitc7678aff1b11014160d64b82853d849ef4ce2465 authorRobert Helgesson <robert@rycee.net> dateTue 2 Nov 2021, 22:43 (5 years ago) parentd4aacdf
1 file changed+1−1
lib/strings.nix+1−1
lib/strings.nix+1−1
@@ -369,7 +369,7 @@ rec {
369369
370370 Example:
371371 escapeXML ''"test" 'test' < & >''
372− => "\\[\\^a-z]\\*"
372+ => "&quot;test&quot; &apos;test&apos; &lt; &amp; &gt;"
373373 */
374374 escapeXML = builtins.replaceStrings
375375 ["\"" "'" "<" ">" "&"]