Skip to content

Commit

Permalink
publications/view: Fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Aug 13, 2021
1 parent 74cddeb commit ca70de3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mpicms/publications/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <![CDATA[...]]> ?
# If we don't make DOI into element:
# 2DO: escape invalid characterds in attribute ( &quot; &amp; &lt; )
# If we don't convert the rich text fields to plain text)
# 2DO: Remove editor artefacts from ricch text fields ("<p>blabla</p>") ?
# 2DO: escape invalid characterds in attribute ( &quot; &amp; &lt; &gt; )
# If we don't convert the rich text fields to plain text maybe:
# 2DO: Remove <p> editor artefacts from rich text fields ("<p>blabla</p>") ?
# 2DO: Remove <i> from source fields ("<p><i>Mol Cell.</i></p>") ?
# maybe use xml.dom for that?
# 2DO: ... ?

def get(self, request, *args, **kwargs):
response = HttpResponse(content_type="application/rss+xml; charset=utf-8")
Expand Down

0 comments on commit ca70de3

Please sign in to comment.