1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-02 21:13:33 +02:00

firefox: reuse escapeXML from Nixpkgs

This commit is contained in:
rcerc 2022-07-14 20:16:58 -04:00 committed by Robert Helgesson
parent 8385408c65
commit 4c5106ed0f
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -58,13 +58,6 @@ let
firefoxBookmarksFile = bookmarks:
let
escapeXML = replaceStrings [ ''"'' "'" "<" ">" "&" ] [
"&quot;"
"&apos;"
"&lt;"
"&gt;"
"&amp;"
];
mapper = _: entry: ''
<DT><A HREF="${escapeXML entry.url}" ADD_DATE="0" LAST_MODIFIED="0"${
lib.optionalString (entry.keyword != null)