summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index cafa59bbd00..49bcccd2640 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -886,7 +886,10 @@ var FieldPhone = FieldEmail.extend({
this._super();
if (this._canCall()) {
var text = this.$el.text();
- this.$el.html(text.substr(0, text.length/2) + "­" + text.substr(text.length/2)); // To prevent Skype app to find the phone number
+ // Split phone number into two to prevent Skype app from finding it
+ var part1 = _.escape(text.substr(0, text.length/2));
+ var part2 = _.escape(text.substr(text.length/2));
+ this.$el.html(part1 + "­" + part2);
} else {
this.$el.removeClass('o_form_uri');
}