diff --git a/Htmlizer.js b/Htmlizer.js
index <HASH>..<HASH> 100644
--- a/Htmlizer.js
+++ b/Htmlizer.js
@@ -171,7 +171,7 @@
                         }
                     }
                 }
-                if (node.nodeType === 3) {
+                if (isOpenTag && node.nodeType === 3) {
                     html += node.nodeValue;
                 }
             }, this);
Fixed toString() from adding text from text nodes twice.