From ca70de3970896e49a06b7a04294af6e8eff2a058 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 13 Aug 2021 08:29:46 +0200 Subject: [PATCH] publications/view: Fixup comment --- mpicms/publications/views.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mpicms/publications/views.py b/mpicms/publications/views.py index 9c9bac4..da6ef12 100644 --- a/mpicms/publications/views.py +++ b/mpicms/publications/views.py @@ -5,14 +5,19 @@ class PublicationsFeedView(View): + # IMPORTANT: Quick hack to get experiments going, This assumes, that the + # editor of the publications is trusted to put only expected values into the + # fields. + # # 2DO: check for legal XML characters everywhere https://www.w3.org/TR/xml/#NT-Char # 2DO: Put HTML content in ? # If we don't make DOI into element: - # 2DO: escape invalid characterds in attribute ( " & < ) - # If we don't convert the rich text fields to plain text) - # 2DO: Remove editor artefacts from ricch text fields ("

blabla

") ? + # 2DO: escape invalid characterds in attribute ( " & < > ) + # If we don't convert the rich text fields to plain text maybe: + # 2DO: Remove

editor artefacts from rich text fields ("

blabla

") ? # 2DO: Remove from source fields ("

Mol Cell.

") ? # maybe use xml.dom for that? + # 2DO: ... ? def get(self, request, *args, **kwargs): response = HttpResponse(content_type="application/rss+xml; charset=utf-8")