lib: fix escapeXML example in documentation

The previous example output was forgotten copy-paste from some other
function.
This commit is contained in:
Robert Helgesson 2021-11-02 22:43:25 +01:00
parent d4aacdf324
commit c7678aff1b
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -369,7 +369,7 @@ rec {
Example:
escapeXML ''"test" 'test' < & >''
=> "\\[\\^a-z]\\*"
=> "&quot;test&quot; &apos;test&apos; &lt; &amp; &gt;"
*/
escapeXML = builtins.replaceStrings
["\"" "'" "<" ">" "&"]