From 8d2f3a9885c5c496f6120e80405608373b924547 Mon Sep 17 00:00:00 2001 From: Zhiming Wang Date: Wed, 10 Jun 2015 01:24:02 -0700 Subject: pyblog: CDATA text cannot be reused Each lxml.etree._Element.text needs a new CDATA. --- pyblog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit v1.2.1