Standalone Office Open XML files (Microsoft Office 2007 and later) generator for Word (docx), PowerPoint (pptx) and Excell (xlsx) in javascript. The output is a stream.
MIT License
2.65k
stars
470
forks
source link
docx-p/addText: explicitly convert text to string #394
text_msg (the first argument of the addText()) might always not be a string (i.g. it can be a number). It's better to add explicit conversion toString() so code would not throw any errors similar to text_msg.replace is not a function in line 111.
text_msg
(the first argument of theaddText()
) might always not be a string (i.g. it can be a number). It's better to add explicit conversiontoString()
so code would not throw any errors similar totext_msg.replace is not a function
in line 111.