Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7569 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2342
1
thg 7 25
859
1
thg 8 25
1150
0
thg 5 25
1320
2
thg 4 25
3519