December 2018
Beginner to intermediate
404 pages
10h 14m
English
We used the <field> element to render the field content. But field values can also be presented directly without a <field> tag.
The t-esc directive evaluates an expression and renders it as an HTML-escaped value, as shown in the following:
<t t-esc="record.message_parter_ids.raw_value" />
In some cases, and if the source data is guaranteed to be safe, t-raw can be used to render the field raw value without any escaping, as shown in the following example:
<t t-raw="record.message_parter_ids.raw_value" />
For security reasons, it's important to avoid using t-raw as much as possible. Its usage should be strictly reserved for outputting HTML data that was specifically prepared without any user data in it or ...
Read now
Unlock full access