Skip to content

Commit d3afdc5

Browse files
author
Daniel Dotsenko
committed
plugins: fromHTML - fixed bug. Now pdf-escaping the text.
1 parent 1227f09 commit d3afdc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jspdf.plugin.from_html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Renderer.prototype.RenderTextFragment = function(text, style) {
234234
'/' + font.id // font key
235235
, (defaultFontSize * style['font-size']).toFixed(2) // font size comes as float = proportion to normal.
236236
, 'Tf' // font def marker
237-
, '('+text+') Tj'
237+
, '('+this.pdf.internal.pdfEscape(text)+') Tj'
238238
)
239239
}
240240

0 commit comments

Comments
 (0)