Use correct RSS CDATA handling (#662)

improve-notification-log
dgtlmoon 3 years ago
parent 6008ff516e
commit 327cc4af34

@ -352,9 +352,8 @@ def changedetection_app(config=None, datastore_o=None):
latest_fname = watch.history[dates[-1]] latest_fname = watch.history[dates[-1]]
html_diff = diff.render_diff(prev_fname, latest_fname, include_equal=False, line_feed_sep="</br>") html_diff = diff.render_diff(prev_fname, latest_fname, include_equal=False, line_feed_sep="</br>")
fe.description(description="<![CDATA[" fe.content(content="<html><body><h4>{}</h4>{}</body></html>".format(watch_title, html_diff),
"<html><body><h4>{}</h4>{}</body></html>" type='CDATA')
"]]>".format(watch_title, html_diff))
fe.guid(guid, permalink=False) fe.guid(guid, permalink=False)
dt = datetime.datetime.fromtimestamp(int(watch.newest_history_key)) dt = datetime.datetime.fromtimestamp(int(watch.newest_history_key))

Loading…
Cancel
Save