escaping html in tooltips

This commit is contained in:
antelle 2020-04-17 20:06:30 +02:00
parent dddc4f235e
commit cbb9a29c8d
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Tip.prototype.show = function() {
const tipEl = (this.tipEl = $('<div></div>')
.addClass('tip')
.appendTo('body')
.html(this.title));
.text(this.title));
const rect = this.el[0].getBoundingClientRect();
const tipRect = this.tipEl[0].getBoundingClientRect();
const placement = this.placement || this.getAutoPlacement(rect, tipRect);