User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Decode HTML special chars for diff view.
NO
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository |
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?
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'); ?>
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
Labels |
Added:
?
|
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
Title |
|
Title |
|
Category | JavaScript Repository | ⇒ | JavaScript Repository NPM Change |
I compared two versions of the same articles, I observed the problem stated in the issue, but when I applied the patch nothing changed.
I have tested this item
Looks like this can be closed as I cannot replicate the reported issue
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-03 18:51:01 |
Closed_By | ⇒ | alikon |
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