[IMP] qweb: add support for template strings

in inline expressions, such as t-esc or t-value.

closes #746
This commit is contained in:
Géry Debongnie
2021-07-04 09:27:31 +02:00
committed by aab-odoo
parent 17ae1d06c4
commit a1552117f9
5 changed files with 88 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ if __name__ == "__main__":
* Make an iframe, with all the js, css and xml properly injected.
*/
function makeCodeIframe(js, css, xml) {
const sanitizedXML = xml.replace(/<!--[\s\S]*?-->/g, "");
const sanitizedXML = xml.replace(/<!--[\s\S]*?-->/g, "").replace(/`/g, '\\\`');
// create iframe