1
0
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:
Andrew Dolgov
2007-05-16 08:05:42 +01:00
parent f826eee150
commit 007a38d4c3
2 changed files with 15 additions and 7 deletions

View File

@@ -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) {