Symbian.org/FeedUpdateBroker.js
changeset 6 5e0dece09f96
parent 4 cb6368112727
child 10 07ac2f6a36a9
--- a/Symbian.org/FeedUpdateBroker.js	Tue Jun 16 10:23:34 2009 +0100
+++ b/Symbian.org/FeedUpdateBroker.js	Mon Jul 13 10:42:26 2009 +0100
@@ -157,20 +157,18 @@
 // Returns the text of a node.
 function getTextOfNode(node) {
     var buf = "";
-    
-    // iterate through all child elements and collect all text to the buffer
-    var child = node.firstChild;
-    while (child != null) {
-        if (child.nodeType == Node.TEXT_NODE || child.nodeType == Node.CDATA_SECTION_NODE) {
-            // append text to buffer
-            if (buf != "") {
-                buf += " ";
-            }
-            buf += escapeLtGt(child.nodeValue);
-        }
-        child = child.nextSibling;
-    }
-    
+	// iterate through all child elements and collect all text to the buffer
+	var child = node.firstChild;
+	while (child != null) {
+		if (child.nodeType == Node.TEXT_NODE || child.nodeType == Node.CDATA_SECTION_NODE) {
+			// append text to buffer
+			if (buf != "") {
+				buf += " ";
+			}
+			buf += escapeLtGt(child.nodeValue);
+		}
+		child = child.nextSibling;
+	}
     // strip all tags from the buffer
     var strippedBuf = "";
     var textStartPos = -1;