NPM Resource Changed ? Success

User tests: Successful: Unsuccessful:

avatar amitranjan2
amitranjan2
14 Feb 2019

Pull Request for Issue # .

Summary of Changes

Decode HTML special chars for diff view.

Testing Instructions

  1. Create two versions of articles and compare the difference.
  2. Due to the overlay issue, you need to remove the backdrop by inspecting.

Expected result

image

Actual result

image

Documentation Changes Required

NO

278f67a 14 Feb 2019 avatar amitranjan2 d=f
avatar amitranjan2 amitranjan2 - open - 14 Feb 2019
avatar amitranjan2 amitranjan2 - change - 14 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Feb 2019
Category JavaScript Repository
avatar C-Lodder
C-Lodder - comment - 14 Feb 2019

I don't think using Javascript to decode the entities is the way forward, as there are hundreds of mappings being missed out. Doing this via PHP before the diff is executed might be a better approach

avatar Anu1601CS
Anu1601CS - comment - 14 Feb 2019

I don't think using Javascript to decode the entities is the way forward, as there are hundreds of mappings being missed out. Doing this via PHP before the diff is executed might be a better approach

I think jsDiff return the encode HTML special characters. So, how we can achive this in PHP?

avatar brianteeman
brianteeman - comment - 14 Feb 2019

Look at how the old and new are displayed. You will need to do something similar with the diff

<?php echo htmlspecialchars($newSubValue, ENT_COMPAT, 'UTF-8'); ?>

avatar C-Lodder
C-Lodder - comment - 14 Feb 2019

Ahh it's jsdiff rendering the string. Can you please try updating to v4.0.0 of the package and see if this works. I'm maintaining one of the developer's projects so I can get in contact with him and see if there's a more viable workaround

avatar amitranjan2 amitranjan2 - change - 14 Feb 2019
Labels Added: ?
avatar amitranjan2
amitranjan2 - comment - 14 Feb 2019

Ahh it's jsdiff rendering the string. Can you please try updating to v4.0.0 of the package and see if this works. I'm maintaining one of the developer's projects so I can get in contact with him and see if there's a more viable workaround

I checked on v4.0.1 . It's not working

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[4.0][Fix] Decode HTML special chars
[4.0] Decode HTML special chars
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[4.0][Fix] Decode HTML special chars
[4.0] Decode HTML special chars
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 19 Apr 2019
Category JavaScript Repository JavaScript Repository NPM Change
avatar BertaOctech
BertaOctech - comment - 15 Nov 2019

I compared two versions of the same articles, I observed the problem stated in the issue, but when I applied the patch nothing changed.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23897.
avatar BertaOctech BertaOctech - test_item - 15 Nov 2019 - Tested unsuccessfully
avatar BertaOctech
BertaOctech - comment - 15 Nov 2019

I have tested this item ? unsuccessfully on 4ca5346


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23897.

avatar brianteeman
brianteeman - comment - 3 Jul 2020

Looks like this can be closed as I cannot replicate the reported issue

screen shot 2020-07-03 at 18 48 51


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23897.

avatar alikon alikon - change - 3 Jul 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-07-03 18:51:01
Closed_By alikon
avatar alikon alikon - close - 3 Jul 2020

Add a Comment

Login with GitHub to post a comment