|
@@ -352,6 +352,11 @@ function getProperSignatureArea(cell, control, offsetX, offsetY) {
|
|
|
return rst;
|
|
|
}
|
|
|
|
|
|
+function strReplaceAll(targetStr, FindText, RepText) {
|
|
|
+ let regExp = new RegExp(FindText, "gm");
|
|
|
+ return targetStr.replace(regExp, RepText);
|
|
|
+}
|
|
|
+
|
|
|
function buildText(destRst, cell, font, control, offsetX, offsetY, adjustY, canvas, isHtoV, HtoVStr) {
|
|
|
let orgFontHeight = parseInt(font[JV.FONT_PROPS[JV.FONT_PROP_IDX_HEIGHT]]);
|
|
|
let fontWeight = (font[JV.FONT_PROPS[JV.FONT_PROP_IDX_BOLD]] === 'T')?"bold":"normal";
|
|
@@ -367,6 +372,9 @@ function buildText(destRst, cell, font, control, offsetX, offsetY, adjustY, canv
|
|
|
let value = cell[JV.PROP_VALUE];
|
|
|
if (value === undefined || value === null) {
|
|
|
value = "";
|
|
|
+ } else if (typeof value === 'string') {
|
|
|
+ //注意:要把 < 符号转义 -> < 否则svg会有错乱
|
|
|
+ value = strReplaceAll(value, '<', '<');
|
|
|
}
|
|
|
let values = null;
|
|
|
if (typeof value === "string") {
|