1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-20 00:39:47 +01: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)