ensure to_unicode is used in description

This commit is contained in:
Louis Abel 2023-09-12 03:13:13 -07:00
parent ccb65bd912
commit 8f08a0ca71
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36

View File

@ -136,8 +136,8 @@ class RepoRSS:
desc = meta['text'] desc = meta['text']
changelog += f'{cl_date} - {author}\n{desc}\n\n' changelog += f'{cl_date} - {author}\n{desc}\n\n'
description = '<p><strong>{}</strong> - {}</p>\n\n'.format(xmlescape(package.name), xmlescape(package.summary)) description = '<p><strong>{}</strong> - {}</p>\n\n'.format(xmlescape(package.name), xmlescape(package.summary))
description += '<p>%s</p>\n\n<p><strong>Change Log:</strong></p>\n\n' % xmlescape(description.replace("\n", "<br />\n")) description += '<p>%s</p>\n\n<p><strong>Change Log:</strong></p>\n\n' % xmlescape(to_unicode(description.replace("\n", "<br />\n")))
description += '<pre>{}</pre>'.format(xmlescape(changelog)) description += xmlescape('<pre>{}</pre>'.format(xmlescape(to_unicode(changelog))))
# start item # start item
etbobj.start('item', {}) etbobj.start('item', {})