commit 29aa231e84a904166ed4177f529d01fd9e0dc6b9
parent fd239246db5b3bd2289a96b57ffea99466557449
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Tue, 30 Jun 2015 21:50:54 +0200
Properly include the CData in the <content type="html"></content> field.
Now it includes the <![CDATA[...]]> block.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Fb2RSS.d b/Fb2RSS.d
@@ -159,7 +159,9 @@ class FBStream : RandomFiniteAssignable!(Post){
e.addChild(new XmlNode("id").addCData("http://facebook.com"~p.href));
e.addChild(new XmlNode("published").addCData(p.time.toISOExtString()));
e.addChild(new XmlNode("updated").addCData(p.time.toISOExtString()));
- e.addChild(new XmlNode("content").setAttribute("type","text/html").addCData(p.content.toString()));
+ UCData uc=new UCData();
+ uc.setCData(p.content.toString());
+ e.addChild(new XmlNode("content").setAttribute("type","html").addChild(uc));
rss.addChild(e);
}
into.writeln(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`);