mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 15:25:56 +00:00
new option: STRIP_UNSAFE_TAGS (utilized)
This commit is contained in:
10
viewfeed.js
10
viewfeed.js
@@ -46,7 +46,13 @@ function headlines_callback() {
|
||||
var counters = xmlhttp.responseXML.getElementsByTagName("counters")[0];
|
||||
var articles = xmlhttp.responseXML.getElementsByTagName("article");
|
||||
|
||||
f.innerHTML = headlines.firstChild.nodeValue;
|
||||
if (headlines) {
|
||||
f.innerHTML = headlines.firstChild.nodeValue;
|
||||
} else {
|
||||
debug("headlines_callback: returned no data");
|
||||
f.innerHTML = "<div class='whiteBox'>" + __('Could not update headlines (missing XML data)') + "</div>";
|
||||
|
||||
}
|
||||
|
||||
if (articles) {
|
||||
for (var i = 0; i < articles.length; i++) {
|
||||
@@ -54,6 +60,8 @@ function headlines_callback() {
|
||||
debug("found id: " + a_id);
|
||||
cache_inject(a_id, articles[i].firstChild.nodeValue);
|
||||
}
|
||||
} else {
|
||||
debug("no cached articles received");
|
||||
}
|
||||
|
||||
if (counters) {
|
||||
|
||||
Reference in New Issue
Block a user