Skip to content

ToolTip: Don't strip ampersands from HTML entities

Bharadwaj Raju requested to merge work/bharadwaj/tooltip-html-entities into master

Previously we stripped any ampersands which weren't immediately followed by whitespace. Now we make sure that the word it's attached to doesn't end with a semicolon, to avoid mangling HTML entities.

Example, from the Fonts KCM:

Before After
Screenshot_20220924_193309 Screenshot_20220924_193046

cc @ngraham

Merge request reports