aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-06-10 01:24:02 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-06-10 01:24:02 -0700
commit8d2f3a9885c5c496f6120e80405608373b924547 (patch)
tree1ece8210854d2d099922663a4f154679a6c08523 /pyblog
parent6e82bf7091d45081c20360b59583f70d3679d5f1 (diff)
downloadmy_new_personal_website-8d2f3a9885c5c496f6120e80405608373b924547.tar.xz
my_new_personal_website-8d2f3a9885c5c496f6120e80405608373b924547.zip
pyblog: CDATA text cannot be reused
Each lxml.etree._Element.text needs a new CDATA.
Diffstat (limited to '')
-rwxr-xr-xpyblog2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyblog b/pyblog
index 3f25f0d8..75512bc9 100755
--- a/pyblog
+++ b/pyblog
@@ -529,7 +529,7 @@ def generate_index_and_feed():
item.link = ET.Element("link")
item.link.text = entry_url
item.description = ET.Element("description")
- item.description.text = entry.content.text
+ item.description.text = ET.CDATA(entry.content_html)
item.author = ET.Element("author")
item.author.text = rss.author_text
item.guid = ET.Element("guid", isPermaLink="true")