Thread:Extension talk:WYSIWYG/'&' in category name causes parser-error (also ' " ' and ' ' cause issues)

hello, I am using Mediawiki 22.11 and WYSIWYG Extension Version 1.5.6_0 [B551]

If I use a '&' in a category name, it gets converted into '%26amp%3B' (looking at the realelement attribute with inspect-Element) after klicking 'ok' in the category dialog (that's how it should be, i guess).

When it is saved/converted once and back to WYSIWYG mode, (e.g when I switch to source mode or show a preview) it gets converted to '%26' or '%20%26%20' if surrounded by '_'/' '

If I then again try to save/preview/switch mode it causes a parser error and the category entry is gone.

steps to reproduce:

add category reference in article like 'test & test'

switch to source mode

switch to WYSIWYG mode

switch to source mode

category is replaced by parsererror message.