|
17 | 17 |
|
18 | 18 | import com.github.liaochong.myexcel.core.constant.Constants; |
19 | 19 | import com.github.liaochong.myexcel.core.style.FontStyle; |
20 | | -import com.github.liaochong.myexcel.utils.*; |
| 20 | +import com.github.liaochong.myexcel.utils.ImageUtil; |
| 21 | +import com.github.liaochong.myexcel.utils.RegexpUtil; |
| 22 | +import com.github.liaochong.myexcel.utils.StringUtil; |
| 23 | +import com.github.liaochong.myexcel.utils.StyleUtil; |
| 24 | +import com.github.liaochong.myexcel.utils.TdUtil; |
21 | 25 | import org.apache.commons.codec.CharEncoding; |
22 | 26 | import org.apache.poi.xssf.usermodel.XSSFRichTextString; |
23 | 27 | import org.jsoup.Jsoup; |
|
28 | 32 |
|
29 | 33 | import java.io.File; |
30 | 34 | import java.io.IOException; |
31 | | -import java.util.*; |
| 35 | +import java.util.ArrayList; |
| 36 | +import java.util.Collections; |
| 37 | +import java.util.HashMap; |
| 38 | +import java.util.LinkedList; |
| 39 | +import java.util.List; |
| 40 | +import java.util.Map; |
| 41 | +import java.util.Objects; |
32 | 42 | import java.util.concurrent.ConcurrentHashMap; |
33 | 43 | import java.util.regex.Pattern; |
34 | 44 | import java.util.stream.Collectors; |
@@ -304,6 +314,10 @@ private void setTdContent(Element tdElement, Td td) { |
304 | 314 | td.tdContentType = href.startsWith("mailto:") ? ContentTypeEnum.LINK_EMAIL : ContentTypeEnum.LINK_URL; |
305 | 315 | return; |
306 | 316 | } |
| 317 | + if (tdElement.hasAttr("blank")) { |
| 318 | + td.content = null; |
| 319 | + return; |
| 320 | + } |
307 | 321 | String content = this.parseContent(tdElement, td); |
308 | 322 | if (tdElement.hasAttr("string")) { |
309 | 323 | td.content = content; |
|
0 commit comments