Browse Source

REPORT-33027 无插件PDF导出-HTML解析:支持<s> 、<strike>、<del>标签

release/10.0
Hugh.C 5 years ago
parent
commit
acef7ca278
  1. 1
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java
  2. 2
      fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

1
fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/FactoryProperties.java

@ -472,5 +472,6 @@ public class FactoryProperties {
followTags.put("strong", "b");
followTags.put("s", "s");
followTags.put("strike", "s");
followTags.put("del", "s");
}
}

2
fine-itext/src/main/java/com/fr/third/v2/lowagie/text/html/simpleparser/HTMLWorker.java

@ -821,7 +821,7 @@ public class HTMLWorker implements SimpleXMLDocHandler, DocListener {
return true;
}
public static final String tagsSupportedString = "ol ul li a pre font span br p div body table td th tr i b u sub sup em strong s strike"
public static final String tagsSupportedString = "ol ul li a pre font span br p div body table td th tr i b u sub sup em strong s strike del"
+ " h1 h2 h3 h4 h5 h6 img hr";
public static final HashMap tagsSupported = new HashMap();

Loading…
Cancel
Save