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)