From 527b4ec86d1eae18b8d8420c5b0ecc2f484cdd50 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Thu, 19 Nov 2015 15:38:25 +0100 Subject: [PATCH] no html (i.e. chev-rights) in saved bookmark and history json --- js/misc-functions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/misc-functions.js b/js/misc-functions.js index f304d98..a575a54 100644 --- a/js/misc-functions.js +++ b/js/misc-functions.js @@ -1189,7 +1189,7 @@ function saveAllBookmarks() { $.each($('#bookmark-container .stream-selection'), function(key,obj) { bookmarkContainer[i] = new Object(); bookmarkContainer[i].dataStreamHref = $(obj).attr('href'); - bookmarkContainer[i].dataStreamHeader = $(obj).html(); + bookmarkContainer[i].dataStreamHeader = $(obj).text(); i++; }); @@ -1211,7 +1211,7 @@ function appendAllBookmarks(bookmarkContainer) { $('#bookmark-container').html(''); var bookmarkContainerParsed = JSON.parse(bookmarkContainer); $.each(bookmarkContainerParsed, function(key,obj) { - $('#bookmark-container').append('' + obj.dataStreamHeader + ''); + $('#bookmark-container').append('' + obj.dataStreamHeader + ''); }); } $('#bookmark-container').sortable({delay: 100}); @@ -1232,7 +1232,7 @@ function updateHistoryLocalStorage() { $.each($('#history-container .stream-selection'), function(key,obj) { historyContainer[i] = new Object(); historyContainer[i].dataStreamHref = $(obj).attr('href'); - historyContainer[i].dataStreamHeader = $(obj).html(); + historyContainer[i].dataStreamHeader = $(obj).text(); i++; }); localStorageObjectCache_STORE('browsingHistory', window.loggedIn.screen_name,historyContainer); @@ -1259,7 +1259,7 @@ function loadHistoryFromLocalStorage() { $('#history-container').css('display','block'); $('#history-container').html(''); $.each(cacheData, function(key,obj) { - $('#history-container').append('' + obj.dataStreamHeader + ''); + $('#history-container').append('' + obj.dataStreamHeader + ''); }); } updateHistoryLocalStorage();