mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 17:19:45 +01:00
firefox: reuse escapeXML
from Nixpkgs
This commit is contained in:
parent
8385408c65
commit
4c5106ed0f
1 changed files with 0 additions and 7 deletions
|
@ -58,13 +58,6 @@ let
|
|||
|
||||
firefoxBookmarksFile = bookmarks:
|
||||
let
|
||||
escapeXML = replaceStrings [ ''"'' "'" "<" ">" "&" ] [
|
||||
"""
|
||||
"'"
|
||||
"<"
|
||||
">"
|
||||
"&"
|
||||
];
|
||||
mapper = _: entry: ''
|
||||
<DT><A HREF="${escapeXML entry.url}" ADD_DATE="0" LAST_MODIFIED="0"${
|
||||
lib.optionalString (entry.keyword != null)
|
||||
|
|
Loading…
Reference in a new issue