[REF] qweb: improve t-on generated code

and deduplicate logic between directive t-on applied on a node and on a
component
This commit is contained in:
Géry Debongnie
2019-12-12 12:18:08 +01:00
committed by aab-odoo
parent f517d44e32
commit b283e65ad4
10 changed files with 176 additions and 180 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export function escape(str: string | number | undefined): string {
if (typeof str === "number") {
return String(str);
}
const p = document.createElement('p');
const p = document.createElement("p");
p.textContent = str;
return p.innerHTML;
}