Do not escape text in plugin, instead escape at render time
This commit is contained in:
parent
332b28e618
commit
e9784509ee
3 changed files with 24 additions and 5 deletions
|
@ -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)')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue