Merge pull request #144287 from rycee/fix-escapexml-example

lib: fix escapeXML example in documentation
This commit is contained in:
Silvan Mosberger 2021-11-02 22:49:04 +01:00 committed by GitHub
commit 5283247e33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
["\"" "'" "<" ">" "&"]