diff -r d3fff58a7af9 -r 3a1db8573f1e Symbian.org/FeedUpdateBroker.js --- a/Symbian.org/FeedUpdateBroker.js Tue Jul 21 12:23:44 2009 +0100 +++ b/Symbian.org/FeedUpdateBroker.js Tue Jul 21 14:30:35 2009 +0100 @@ -4,7 +4,6 @@ // Constructor. function FeedUpdateBroker() { - this.escapeLtGt=true; this.httpReq = null; this.feedAddress = null; this.callback = null; @@ -96,7 +95,7 @@ if (node.nodeName == "pubDate" || node.nodeName == "lastBuildDate" || node.nodeName == "dc:date") { - lastModified = getTextOfNode(node, this.escapeLtGt); + lastModified = getTextOfNode(node); break; } } @@ -126,18 +125,18 @@ if (node.nodeType == Node.ELEMENT_NODE) { if (node.nodeName == "title") { // item title - title = getTextOfNode(node, this.escapeLtGt); + title = getTextOfNode(node); } else if (node.nodeName == "pubDate" || node.nodeName == "dc:date") { // item publishing date - date = getTextOfNode(node, this.escapeLtGt); + date = getTextOfNode(node); } else if (node.nodeName == "description" && !this.ignoreContent ) { // item description - description = getTextOfNode(node, this.escapeLtGt); + description = getTextOfNode(node); } else if (node.nodeName == "link") { // link URL - url = getTextOfNode(node, this.escapeLtGt); + url = getTextOfNode(node); } else if (node.nodeName == "dc:creator" ) { - author = getTextOfNode(node, this.escapeLtGt); + author = getTextOfNode(node); } } node = node.nextSibling; @@ -156,7 +155,7 @@ } // Returns the text of a node. -function getTextOfNode(node, escapeLtGt) { +function getTextOfNode(node) { var buf = ""; // iterate through all child elements and collect all text to the buffer var child = node.firstChild; @@ -167,11 +166,7 @@ buf += " "; } buf += child.textContent; -// if (escapeLtGt) { // buf += doEscapeLtGt(child.nodeValue); -// } else { -// buf += child.nodeValue; -// } } child = child.nextSibling; }