9. Text
A text
type variable is used to represent and manipulate a sequence of characters.
Postback
Writing a widget that uses a text
property is quite straightforward and is likely the easiest type to implement.
You don't need to do anything special when using the text
type in JavaScript, as it is similar to the String
type in JavaScript.
Print Output Overview
Depending on the encoding format, different outputs are generated. Let's assume a variable var @s: text
holds the value ">>> Stan Laurel & Oliver Hardy <<<"
. The following outputs will be generated:
<?= @s ?>
>>> Stan Laurel & Oliver Hardy <<<
<?attr @s ?>
>>> Stan Laurel & Oliver Hardy <<<
<?js @s ?>
">>> Stan Laurel & Oliver Hardy <<<"
<?raw @s ?>
>>> Stan Laurel & Oliver Hardy <<<
Last updated
Was this helpful?