Okay, the issue is QtWebEngineView selectedText() returns the xml decoded string so before re-inserting it (when adding the link) we need to make it xml safe as it was in the underlying xhtml file.
I have now fixed this in PageEdit master but the code in question is used for many many things so I am worried my fix may have some unexpected side effects.
We will need to spend some time testing things before actually releasing it.
I can point you at the change if you build your own.
Thanks for the bug report!
|