salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
175 stars 121 forks source link

Descrition field in tasks shows html-entities for special characters #510

Open Porhoken opened 2 months ago

Porhoken commented 2 months ago

Issue

When in detail view of a task, the description field shows special characters (umlauts, accented etc.) as html-entities.

Possible Fix

No response

Steps to Reproduce the Issue

1. Create a task.
2. Have a text in the description field containing special characters.
3. Save task and open detail view - description text is shown with html-entites for special characters.

Context

Happens with "english_us" gui, as well as with installed and activated german language pack.

The subject field is not affected!

Crosschecked with version 8.6.0 - the issue is not there, only in 8.6.1.

Checked the SuiteCRM 8.6.1 online demo - happens there as well!

The content in the database is correct (ä,ö,ü), i checked that on my install.

Possibly related to #471 and #474, but is a different part of the gui. Umlauts in my gui show fine.

Version

8.6.1

What browser are you currently using?

Chrome

Browser Version

126.0.6478.127 (64 bit)

Environment Information

mariadb, php 8.2.21

Operating System and Version

Ubuntu 24.04 server, minimal install

chris001 commented 2 months ago

Note for anyone who makes the fix for this: All fields containing user input, (e.g. Subject, Description, email subject, email body, email campaigns, etc) should be processed and displayed with the same code - and correctly display special characters. When it breaks for one field, it would break for all fields, quickly detected, and fixed.

raulumonzalvez commented 3 weeks ago

This applies to all text area fields. (for example, the "Description" field in Accounts). For the text "España. Camión":

In 8.6.0 the text displayed in detail view or edit view is: España. Camión In 8.6.1 or 8.6.2 the text displayed is: Espa\ña. Cami\ón