diff options
| author | Vaibhav (OpenERP) <vda@tinyerp.com> | 2011-06-22 10:53:59 +0530 |
|---|---|---|
| committer | Vaibhav (OpenERP) <vda@tinyerp.com> | 2011-06-22 10:53:59 +0530 |
| commit | 30d315dfd95bccc1fb91c2fea9d7a31cf86ab6bf (patch) | |
| tree | 1d46c6a5e1c86fe051c19139014fa402d49f02ea /addons/base/static/lib | |
| parent | 68fdbd29122f085e128d9d93e3ea53ef18a6a12f (diff) | |
| parent | c57a3e0d98229ed66dde92c5caad39f6bc0efdbd (diff) | |
[MERGE] openerp-web
bzr revid: vda@tinyerp.com-20110622052359-n3tef8f89jo22cs9
Diffstat (limited to 'addons/base/static/lib')
| -rw-r--r-- | addons/base/static/lib/qweb/qweb2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base/static/lib/qweb/qweb2.js b/addons/base/static/lib/qweb/qweb2.js index 5067d30d70e..5041142924d 100644 --- a/addons/base/static/lib/qweb/qweb2.js +++ b/addons/base/static/lib/qweb/qweb2.js @@ -35,10 +35,10 @@ var QWeb2 = { return (noquotes ? '' : "'") + s.replace(/\r?\n/g, "\\n").replace(/'/g, "\\'") + (noquotes ? '' : "'"); }, html_escape: function(s, attribute) { - if (s === null || s === undefined) { + if (s == null) { return ''; } - s = (new String(s)).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); + s = String(s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); if (attribute) { s = s.replace(/"/g, '"'); } |
