Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
7543 Vistas

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

Avatar
Descartar
Mejor respuesta

Hi,

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

Thanks

Avatar
Descartar
Autor

Thanks

Mejor respuesta

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
Descartar
Autor

Thanks

Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 25
2217
1
jul 25
756
1
ago 25
1150
0
may 25
1260
2
abr 25
3458