使用Django 1.2的Im,正在为播音制作好XML。 含有单一报价、双重报价或插手的任何标题似乎都属于双重替罪,例如:
<title>Podcast: &quot;But we had hoped...&quot;</title>
Which means that they show up like this:
Podcast: "But we had hoped"
我确实找到了,但该票是封闭的。
I m generating my feed using this snippet, and I m just stuffing a value in a model field into the self.title
bit, like this:
class iTunesPodcastPost():
def __init__(self, talk):
self.id = talk.id
self.approval_date_time = talk.created
self.title = talk.title # Looks wonky
self.summary = talk.details # Looks fine
self.enclosure_url = talk.mp3.url
self.enclosure_length = talk.mp3.size
self.enclosure_mime_type = u audio/mpeg
self.duration = %s % talk.seconds
self.explicit = u clean
self.info_url = talk.get_absolute_url()
如果有这种帮助,播种的饲料是here。