Skip to Content
Menu
This question has been flagged
1 Reply
3482 Views

How can i securely render HTML formated text with some allowed tags like <b> <i> on a odoo qweb report.

I don't trust t-raw. 

There are any odoo module or example code for this?

Avatar
Discard
Best Answer

Hi,

use following approaches;

<t t-if="your_conditions">
     <b></b>
</t>
or
<b t-if="condition">Sample Text</b>


Avatar
Discard
Related Posts Replies Views Activity
2
Sep 23
23929
2
Jul 23
3255
1
Jun 23
2599
1
Apr 23
3205
1
Nov 22
2130