Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7570 Näkymät

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

Avatar
Hylkää
Paras vastaus

Hi,

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

Thanks

Avatar
Hylkää
Tekijä

Thanks

Paras vastaus

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
Hylkää
Tekijä

Thanks

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
elok. 25
2345
1
heinäk. 25
862
1
elok. 25
1150
0
toukok. 25
1322
2
huhtik. 25
3521