Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
7598 Visninger

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

Avatar
Kassér
Bedste svar

Hi,

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

Thanks

Avatar
Kassér
Forfatter

Thanks

Bedste svar

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
Kassér
Forfatter

Thanks

Related Posts Besvarelser Visninger Aktivitet
2
aug. 25
2395
1
jul. 25
901
1
aug. 25
1151
0
maj 25
1340
2
apr. 25
3556