The text with special character like & are converted by the

Html::escape($this->value);

to the corresponding html entities. But when this text appears as a element title on front end, these entities are not converted back to the corresponding char.

This can be checked on any input field with title which renders it as tooltip.

Comments

adhariwal created an issue. See original summary.

adhariwal’s picture

markhalliwell’s picture

Status: Active » Postponed (maintainer needs more info)

Where?

adhariwal’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new38.36 KB

Only local images are allowed.

Steps to reproduce this issue:
1. Give site name with special char like "&".
2. visit user/login page
3. hover on the user name text field, notice the tool tip. the "&" will be show as the html entity code.

this is one instance where I noticed but it can happen somewhere else too.

nikunjkotecha’s picture

Status: Active » Closed (works as designed)

@Abhishek, I think this works as designed, you need to configure it to allow HTML in tooltips.

in /appearance/settings/bootstrap, Bootstrap Settings > JavaScript tab > Tooltips accordion > Check the HTML option (Insert HTML into the tooltip) to allow HTML.