output += cgi.escape(item.contents)
output += '\n </description>\n'
output += '<pubDate>%s</pubDate>\n' % time.strftime('%a, %d %b %Y %H:%M:%S +0800', time.gmtime(item.itemDate))
+ output += '<comments>%s</comments>\n' % item.commentsURL
output += '</item>\n'
return output