Textarea#
Textareas are used to input multi-line text content in Imperia templates.
Syntax#
The syntax for creating a textarea field in Imperia templates is as follows:
<textarea name="IMPERIA:Name" rows="5" cols="40"></textarea>
Here, IMPERIA:Name is the identifier for the textarea field. You can replace Name with your desired field name.
Escaping Mode#
Imperia provides an option to extend the syntax of a textarea field with an escaping mode. This allows you to control how entered HTML code is treated within the textarea. Please refer to the HTML Escaping Modes section for more information.
Syntax with Escaping Mode#
To use an escaping mode in a textarea field, modify the syntax as follows:
<textarea name="IMPERIA:mode:name" rows="5" cols="40"></textarea>
Replace mode with the desired escaping mode, and name with your desired field name.
Default Escaping Mode#
If no escaping mode is defined for a textarea field, Imperia assumes the default escaping mode, which is TEXTBR. This means that entered HTML code will be treated as plain text and displayed without rendering any HTML tags.