nextcloud/apps/comments/src
Daniel Calviño Sánchez 8a25e2dbcb Fix HTML entities not decoded in comment just added
The XML data received from the comments endpoint has an inconsistent
encoding; some entities are encoded once and others are encoded twice.
When the comment list is loaded the comments are fetched using
GetComments, which handles all that, and therefore shows the messages
and author names as expected.

However, when a new comment is posted the list is not got again; instead
the new comment is loaded from the comment data returned after posting
it. This is done in NewComment, which did not decode the messages nor
the author names, and therefore showed, for example, "&" instead of
"&".

To solve that now the same decoding logic used in GetComments is applied
too in NewComment.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-11-24 01:19:05 +00:00
..
components Fix mentions rendering in comment editor 2022-11-23 13:47:24 +01:00
mixins Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
services Fix HTML entities not decoded in comment just added 2022-11-24 01:19:05 +00:00
templates Cleanup old comments tab 2020-10-20 13:58:07 +02:00
utils Extract "decodeHtmlEntities" function to its own file 2022-11-24 01:19:05 +00:00
views Fix mentions rendering in comment editor 2022-11-23 13:47:24 +01:00
activitytabviewplugin.js Fix typos in apps/ subdirectory 2022-09-05 12:59:54 +00:00
app.js Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
comments-app.js Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
comments-tab.js Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
comments.js Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
filesplugin.js Replace license information to SPDX expression 2022-01-11 17:26:40 +01:00
templates.js Fix comments filesplugin 2021-03-17 14:45:29 +01:00