mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-04 11:19:27 -05:00
title in fancytree needs to be escaped for HTML special characters
This commit is contained in:
@@ -93,4 +93,8 @@ function isTopLevelNode(node) {
|
||||
|
||||
function isRootNode(node) {
|
||||
return node.key === "root_1";
|
||||
}
|
||||
|
||||
function escapeHtml(str) {
|
||||
return $('<div/>').text(str).html();
|
||||
}
|
||||
Reference in New Issue
Block a user