<print> and <replace>
<print
value="exprprintable"
( quote
| meta
| text
| nowrap
| nl2br
| compress
| caps
| capsfirst
| encode )
| decode )
| uppercase )
| lowercase )
| trim ) *
>
<replace ... >
...
</replace>
A ``print´´ tag prints the output
of the string representation of the value yielded by a given expression.
Before output, the string is modified by optional conversions.
A ``replace´´ tag works similarly to ``print´´,
but it also contains an example text (or tags),
for the benefit of visual HTML editors. Example text is 'replaced' with
the produced string.
Attributes:
- value
- Value to print, given as an expression.
- quote
- Conversion: Quotes meta characters (< > & " ' & nbsp; )
and characters with code >=128 with corresponding &html entities.
- meta
- Conversion: Quotes meta characters
with corresponding &html entities.
- text
- Conversion: Quotes characters with code >=128 with
corresponding &html entities.
- nowrap
- Conversion: Converts all spaces to ``
&nsbp;´´.
- nl2br
- Conversion: Inserts <br> after each line feed.
- compress
- Conversion: Compresses consequtive whitespaces (line feeds, tabulators, spaces) into single space.
- caps
- Conversion: Capitalizes all words.
- capsfirst
- Conversion: Capitalizes first word.
- encode
- Conversion: Performs URL encoding.
- decode
- Conversion: Performs URL decoding.
- uppercase
- Conversion: Converts characters to uppercase.
- lowercase
- Conversion: Converts characters to lowercase.
- trim
- Conversion: Trims whitespaces from beginning and end.
There may be any number of conversion attributes: they are applied
in the order given.
Add a note
|