mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 01:29:46 +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:
|
firefoxBookmarksFile = bookmarks:
|
||||||
let
|
let
|
||||||
escapeXML = replaceStrings [ ''"'' "'" "<" ">" "&" ] [
|
|
||||||
"""
|
|
||||||
"'"
|
|
||||||
"<"
|
|
||||||
">"
|
|
||||||
"&"
|
|
||||||
];
|
|
||||||
mapper = _: entry: ''
|
mapper = _: entry: ''
|
||||||
<DT><A HREF="${escapeXML entry.url}" ADD_DATE="0" LAST_MODIFIED="0"${
|
<DT><A HREF="${escapeXML entry.url}" ADD_DATE="0" LAST_MODIFIED="0"${
|
||||||
lib.optionalString (entry.keyword != null)
|
lib.optionalString (entry.keyword != null)
|
||||||
|
|
Loading…
Reference in a new issue