Actions
Bug #14481
openXHTML content in a WPushButton via WSting::tr is not actually XHTML when containing XHTML entities
Start date:
04/17/2026
Due date:
% Done:
0%
Estimated time:
Description
In case of a WPushButton receiving content from a resolved localized string, even if the TextFormat is set to XHTML, it will always be rendered as Plain in case the string contains an XHTML entity.
A simple test case:
<message id="test">
<p>Dos & Don'ts</p>
</message>
And then adding the button with:
root()->addNew<Wt::WPushButton>(Wt::WString::tr("test"), Wt::TextFormat::XHTML);
The resulting content of the button will be <p>Dos & Don'ts</p>, instead of the expected Dos & Don'ts.
Updated by Matthias Van Ceulebroeck 5 days ago
- Status changed from InProgress to Review
- Assignee deleted (
Matthias Van Ceulebroeck)
Updated by Romain Mardulyn 1 day ago
- Status changed from Review to Implemented @Emweb
- Assignee changed from Romain Mardulyn to Matthias Van Ceulebroeck
Actions