summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layman/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/layman/utils.py b/layman/utils.py
index 178ad11..695b996 100644
--- a/layman/utils.py
+++ b/layman/utils.py
@@ -112,7 +112,9 @@ def node_to_dict(node):
for child in node.childNodes:
if child.nodeType == child.TEXT_NODE:
text = text + child.data
- if child.nodeType == child.ELEMENT_NODE:
+ elif child.nodeType == child.CDATA_SECTION_NODE:
+ text = text + child.data
+ elif child.nodeType == child.ELEMENT_NODE:
index = 1
while ('<' + child.tagName + '>' + str(index)) in result.keys():
index += 1