Re: Description and other fields in RSS. (CDATA)

2009-01-14 Thread Ivan Sagalaev
Vladimir Prudnikov wrote: > So, at my point it, lets say, "bad style" of coding. The idea is to > keep original field content without any modification. XML and RSS > specification allow and recommend it, why to not use it? As Malcolm said, Django does use it, i.e. it does escape HTML to pres

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Malcolm Tredinnick
On Wed, 2009-01-14 at 05:17 +0100, Vladimir Prudnikov wrote: [...] > First of all RSS file is XML Document. From RSS specification - > "RSS is a dialect of XML. All RSS files !must conform to the XML 1.0 > specification, as published on the World Wide Web Consortium (W3C) > website." That is

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
On 14 Jan 2009, at 04:55, Malcolm Tredinnick wrote: > > On Wed, 2009-01-14 at 04:39 +0100, Vladimir Prudnikov wrote: >> My siggestion is about feed framework. When you add description to >> the >> feed item like >> >> feed.add_item( >> title=pic.name, >> link=li

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Malcolm Tredinnick
On Wed, 2009-01-14 at 04:39 +0100, Vladimir Prudnikov wrote: > My siggestion is about feed framework. When you add description to the > feed item like > > feed.add_item( > title=pic.name, > link=link, > description=description > ) > > th

Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
My siggestion is about feed framework. When you add description to the feed item like feed.add_item( title=pic.name, link=link, description=description ) the html content inside description tag will be htmlencoded (< and > will be repl