This tag takes the text you specify and modifies it accordingly. You can configure this tag to make the following modifications, which are performed in this order:
Remove HTML tags included in the text
Shorten the text to include all characters up to the first space or, if that space is after the character number indicated in the
maxLength
attribute, shorten the text to the indicated maximum length.Add specific text to the end of the text string.
Keep in mind that the resultant text string is longer than the value indicated by the maxLength
attribute if you also use the appendedText
attribute. The resultant text is saved to a String result object named by the var
attribute.
Note: This tag is an instance of the EscapeHTMLTextTag
class.
Attributes
The following attributes are defined for the pws:display
tag:
Attributes | Description | Required? |
---|---|---|
| Names the result object to contain the text. | yes |
| The text that you want to modify. | yes |
| The text that should be appended to the resultant text. | no |
| The maximum number of characters that remain in the text after HTML characters are removed. When you use this attribute, the text ends just before the first space or, if that exceeds the | no |