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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | user-name-text-field-special-char-issue.png | 38.36 KB | adhariwal |
Comments
Comment #2
adhariwal commentedComment #3
markhalliwellWhere?
Comment #4
adhariwal commentedSteps 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.
Comment #5
nikunjkotecha@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.