Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7606 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

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

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

Thanks

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

Thanks

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ส.ค. 25
2403
1
ก.ค. 25
908
1
ส.ค. 25
1151
0
พ.ค. 25
1344
2
เม.ย. 25
3565