Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
7555 Prikazi

I want to understand what is t-esc in odoo xml?

Avatar
Opusti
Best Answer

Hi,

t-esc is used to print out the value in a variable.

Thanks

Avatar
Opusti
Avtor

Thanks

Best Answer

Hi Asmaa,

The t-esc directive is used in Odoo to display the value of a field or expression in a template.

When using the t-esc directive in Odoo XML, the value of the field or expression will be automatically escaped before being displayed in the template. This means that certain characters in the value that have special meaning in HTML, such as , &, ", and ', will be replaced with their corresponding HTML entities.


Documentation:
https://www.odoo.com/documentation/14.0/developer/reference/javascript/qweb.html


Hope it Helps,

Kiran K

Avatar
Opusti
Avtor

Thanks

Related Posts Odgovori Prikazi Aktivnost
2
avg. 25
2301
1
jul. 25
827
1
avg. 25
1150
0
maj 25
1279
2
apr. 25
3490