diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 01:24:02 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-06-10 01:24:02 -0700 |
commit | 8d2f3a9885c5c496f6120e80405608373b924547 (patch) | |
tree | 1ece8210854d2d099922663a4f154679a6c08523 | |
parent | 6e82bf7091d45081c20360b59583f70d3679d5f1 (diff) | |
download | my_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.
-rwxr-xr-x | pyblog | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |