Special characters from description should be decode

Created on 23 April 2020, over 4 years ago
Updated 25 September 2023, about 1 year ago

Problem/Motivation

Site builder can create a taxonomy menu with link description from taxonomy description field. Taxonomy description field can contain a special characters, html entities etc in their body. This special characters appear in menu link like href tag title.

Steps to reproduce

  • Create a new taxonomy menu
  • Set description from taxonomy description
  • Set taxonomy description text like non-breaking space  
  • You can see non-breaking space   when you mouse over your menu link
  • You should see non-breaking space

Proposed resolution

Use html_entity_decode to remove special characters from description.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇵🇱Poland lamp5 Rzeszow

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024