Open tjfsteele opened 1 year ago
Happy to fix but what's the right solution while maintaining backward compatibility? Just treat "&" as a special case, but otherwise assume it's unformatted text with no markup?
Just treat it as markup, using toHtmlEscaped()
So, call that on whatever the user types before storing the underlying value - and the opposite before displaying in the text field (it's not 100% clear what the opposite should be, QTextDocumentFragment::fromHtml(escapedString).toPlainText();
appears to be the closest). This will also mean any HTML tags (<i>
<b>
etc.) are ignored, but they appear to be currently anyway.
Volta text cannot contain &. Workaround is to enter & amp;
This bug is in 3.6 and also 4.x