Browse Source

REPORT-31492 word导出中Html无法解析小于号(漏提)

bugfix/10.0
Hugh.C 5 years ago
parent
commit
8d1c235eb7
  1. 2
      fine-itext-old/src/com/fr/third/com/lowagie/text/xml/simpleparser/SimpleXMLParser.java

2
fine-itext-old/src/com/fr/third/com/lowagie/text/xml/simpleparser/SimpleXMLParser.java

@ -237,7 +237,7 @@ public final class SimpleXMLParser {
// we can encounter any content // we can encounter any content
case TEXT: case TEXT:
if(character == '<') { if(character == '<') {
beginnOfTag((char) reader.read(), UNKNOWN); beginnOfTag((char) reader.read(), TEXT);
} else if(character == '&') { } else if(character == '&') {
saveState(state); saveState(state);
entity.setLength(0); entity.setLength(0);

Loading…
Cancel
Save