1
0
Fork 0

Do not escape text in plugin, instead escape at render time

This commit is contained in:
Joost De Cock 2020-03-15 12:20:48 +01:00
parent 332b28e618
commit e9784509ee
3 changed files with 24 additions and 5 deletions

View file

@ -6,7 +6,7 @@ function drawDimension(from, to, so, self) {
.move(from)
.line(to)
.attr('class', 'mark')
.attr('data-text', so.text || self.units(from.dist(to)).replace('"', '“'))
.attr('data-text', so.text || self.units(from.dist(to)))
.attr('data-text-class', 'fill-mark center')
if (!so.noStartMarker) dimension.attributes.set('marker-start', 'url(#dimensionFrom)')
if (!so.noEndMarker) dimension.attributes.set('marker-end', 'url(#dimensionTo)')