No Code Attached Yet
avatar ChristineWk
ChristineWk
23 Oct 2024

Steps to reproduce the issue

If you look at the versioning of articles and want to compare them, Joomla shows both versions in pure HTML code.

There is a possibility of an override of:
administrator/components/com_contenthistory/tmpl/compare/compare.php
Thanks to Viktor Vogel.
Possible change from:
<?php echo htmlspecialchars($subValue->value, ENT_COMPAT, 'UTF-8'); ?>
to:
<?php echo $subValue->value; ?>

But: The "Changes" column still contains the HTML code. In J3 the text here was also formatted, which was much clearer, especially thanks to the paragraphs, when there was a lot of text.

In J3 you could switch from HTML code to text.

That was removed from the code 11 years ago
https://github.com/joomla/joomla-cms/blame/86043165758b6b48c2a4b2bc56a12ff298fd348e/administrator/components/com_contenthistory/views/compare/tmpl/compare.php#L32

Expected result

It would certainly be optimal if you could switch between HTML and formatted text in the display.

avatar ChristineWk ChristineWk - open - 23 Oct 2024
avatar ChristineWk ChristineWk - change - 23 Oct 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 23 Oct 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Oct 2024

Add a Comment

Login with GitHub to post a comment