Skip to content
Mark Reeves edited this page Jan 3, 2018 · 4 revisions

WText is used to output plain text into the UI. It should only be specified explicitly where there is some ambiguity as to the purpose of the content. Plain text has not semantic purpose other than the payload.

The encoded property

This Boolean property defaults to true and in this state all text is HTML escaped. If set false the text is XML escaped but HTML will be sent to the client. You must use caution if specifying this property.

You must never specify WText with the encoded property false where:

  • the text content is a label, legend, or labeling element for another WComponent; or
  • the text content is the result of user input from any system.

Related Components

Further information

Clone this wiki locally