firefox: reuse escapeXML
from Nixpkgs
This commit is contained in:
parent
8385408c65
commit
4c5106ed0f
|
@ -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