The var tag is used to perform simple variable substitutions. A number of attributes are provided to control how text is to be inserted and formatted. The attributes are summarized in table See var tag attributes.
Insert the name of the variable. See "The name attribute" on page 9. |
||
Insert an expression that evaluates a value. See "The expr attribute" on page 9. |
||
Specify a data format, which may be a special, custom, or C-style format. See Custom, Special, C, and Empty Formats |
||
Specify a string to be substituted for null values. See Null Values |
||
In a value containing all numbers, insert commas every three digits to the left of a decimal point. For example, "12000 widgets" becomes "12,000 widgets". |
||
Convert characters that have special meaning in HTML to HTML character entities. |
||
Convert characters that have special meaning in URLS to HTML character entities using decimal values. |
||
Convert single quotation mark to a pair of single quotation marks. This is needed to safely include values in Standard Query Language (SQL) strings. |
||
Convert new-line characters, carriage-return characters, and new-line-carriage-return character combinations to new-line characters followed by HTML break tags. |
||
Truncate the value to the given size. See Truncation |
||
Provide a string to be added to truncated text to indicate that truncation has occurred. The default value is "...". See Truncation |