No Code Attached Yet
avatar korenevskiy
korenevskiy
26 Jun 2023

Steps to reproduce the issue

  1. Create a new material.
  2. Drag the image into the editor field.
  3. In the description field of the pop-up window, enter the text "The «Name» for the picture".
  4. Click the Save button.
  5. Check the source code of the material.
  6. You can see the text « Name » in the ALT attribute.

This is a mistake.

Expected result

Because when saving « Name » characters will be replaced with « Name »

Actual result

Because when saving « Name » characters will be replaced with « Name »

Additional comments

It is necessary to fix the code so that when writing text in the image description field, special characters are not converted to HTML variants. Since the text in the ALT and TITLE attributes will then be displayed on the site as is, in the form of HTML characters.

image
image

A real example from the site.

image

This is an important correction. Since in languages with Cyrillic characters, it is customary to write quotation marks in the form of a Christmas tree. Perhaps it is also accepted in other languages. Such quotation marks clearly show where it opens and where it closes, similar to parentheses.

avatar korenevskiy korenevskiy - open - 26 Jun 2023
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jun 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Jun 2023
avatar korenevskiy korenevskiy - change - 26 Jun 2023
Title
Inserting a description for images in the materials editor, converts special characters with an error.
Delete
avatar korenevskiy korenevskiy - edited - 26 Jun 2023
avatar korenevskiy korenevskiy - change - 26 Jun 2023
The description was changed
avatar korenevskiy korenevskiy - edited - 26 Jun 2023
avatar korenevskiy korenevskiy - change - 26 Jun 2023
The description was changed
avatar korenevskiy korenevskiy - edited - 26 Jun 2023
avatar korenevskiy korenevskiy - edited - 26 Jun 2023
avatar korenevskiy korenevskiy - change - 26 Jun 2023
The description was changed
avatar korenevskiy korenevskiy - change - 26 Jun 2023
Title
Delete
Inserting a description for images in the materials editor, converts special characters with an error.
avatar korenevskiy korenevskiy - edited - 26 Jun 2023
avatar korenevskiy korenevskiy - change - 26 Jun 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-06-26 20:34:54
Closed_By korenevskiy
avatar korenevskiy korenevskiy - close - 26 Jun 2023

Add a Comment

Login with GitHub to post a comment