Actions
Bug #807
closedAnchor text default FormatType
Start date:
05/02/2011
Due date:
% Done:
0%
Estimated time:
Description
Hi,
When doing something like:
WAnchor *a = new WAnchor(root());
a->setText("< 100");
The log file will show:
[error] "Error reading XHTML string: expected element name"
When using something like this instead:
a->setText("foobar");
You get:
[error] "Error reading XHTML string: invalid closing tag name"
And with this:
a->setText("foobar");
You get no error.
The first 2 show the original text, while the last actually renders the break.
I have a 2 problems with this:
- I wasn't expecting that the WText would be created with TextFormat set to Wt::XHTMLText, I was expecting Wt::PlainText
- I can't control either the TextFormat or the WText itself.
Kurt
Updated by Koen Deforche over 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.1.11
Actions