diff options
| author | Raphael Collet <rco@openerp.com> | 2015-11-17 14:53:02 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-11-17 16:18:05 +0100 |
| commit | 9687eb3d8434a09b5f564b49eaa8bb8e88ff9d1c (patch) | |
| tree | 6184fa20b57ceb9e19034e6c30416cc3d071cdc9 /addons/web/static/src/js | |
| parent | 69db2f537b95952165a8d3814eebb06cfdf46455 (diff) | |
[FIX] translate: fix `xml_translate` to use an HTML parser as a fallback
When terms are translated in the website, their values are sent as HTML (with
text entities escaped). The function `xml_translate` is used to sanitize those
values, and sometimes crashes because of non-closed entities like `<br>`. Fix
it by using an HTML parser as a fallback.
This is a partial revert of 6c8e53a08705b948833fa58d3c5dc182ebb889c4.
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
