XWIKI-9427: Autocompletion for Spaces and Pages turns ampersands into &amp;
* Encode the HTML and take the text content instead of the inner HTML (as suggested by Clemens Robbenhaar).