Search tries to highlight result matches in escaped markup leading to invalid markup
When searching for "a" on an English locale with the control center search provider enabled one can get the following error message:
Failed to set the markup of the actor '<unnamed>[<ClutterText>:0x3ee8b30]': Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity — escape ampersand as &
This is due to the shell trying to highlight the search term matches in the result description by surrounding them with <b></b>
. The description returned by the control center search provider is escaped markup, which turns the "Don't"
from the usage panel which into "Don't"
. After highlighting the matches of the search term "a" this becomes "Don&<b>a</b>pos;t"
which the markup parser then complains about.