Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5] Compare versions to formatted text #44345

Open
ChristineWk opened this issue Oct 23, 2024 · 0 comments
Open

[5] Compare versions to formatted text #44345

ChristineWk opened this issue Oct 23, 2024 · 0 comments

Comments

@ChristineWk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants