From 9c020ded6d155a0d70fc7b68743e6e8f62974f28 Mon Sep 17 00:00:00 2001 From: maxpozdeev Date: Thu, 29 May 2025 10:18:34 +0300 Subject: [PATCH] - fix: escaped special html symbols in browser page title (closes GH-113) --- src/content/mytinytodo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/mytinytodo.js b/src/content/mytinytodo.js index f8c2e1d..159509d 100644 --- a/src/content/mytinytodo.js +++ b/src/content/mytinytodo.js @@ -1671,7 +1671,7 @@ function tabSelect(elementOrId) 'prevList':prevList }); } - const newTitle = curList.name + ' - ' + _mtt.options.title; + const newTitle = dehtml(curList.name) + ' - ' + _mtt.options.title; const isFirstLoad = flag.firstLoad; //replaceHistoryState( 'list', { list:id }, _mtt.urlForList(curList), newTitle ); updateHistoryState( { list:id }, _mtt.urlForList(curList), newTitle ); @@ -1854,7 +1854,7 @@ function viewTask(id) const item = fillTaskViewer(id); if (!item) return; _mtt.pageSet('taskviewer'); - updateHistoryState({ task: item.id, list: item.listId }, '#task/'+item.id, dehtml(item.title) + ' - ' + curList.name + ' - ' + _mtt.options.title); + updateHistoryState({ task: item.id, list: item.listId }, '#task/'+item.id, dehtml(item.title) + ' - ' + dehtml(curList.name) + ' - ' + _mtt.options.title); }