Merge pull request #2305 from brendandahl/remove-innerhtml
Remove use of innerhtml.
This commit is contained in:
commit
7e2c94453c
@ -2551,7 +2551,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv, pageIdx) {
|
||||
function beginText(begin, className) {
|
||||
var divIdx = begin.divIdx;
|
||||
var div = textDivs[divIdx];
|
||||
div.innerHTML = '';
|
||||
div.textContent = '';
|
||||
|
||||
var content = bidiTexts[divIdx].str.substring(0, begin.offset);
|
||||
var node = document.createTextNode(content);
|
||||
|
Loading…
Reference in New Issue
Block a user