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: label
GPG Key ID: B37E62D143879B36
1 changed files with 2 additions and 2 deletions

View File

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