fix a css selector bug=.=!
parent
7020b8648d
commit
9338e13c38
|
@ -27,7 +27,7 @@ public class CssSelector implements Selector {
|
|||
public String select(String text) {
|
||||
Document doc = Jsoup.parse(text);
|
||||
Elements elements = doc.select(selectorText);
|
||||
if (CollectionUtils.isNotEmpty(elements)) {
|
||||
if (CollectionUtils.isEmpty(elements)) {
|
||||
return null;
|
||||
}
|
||||
return elements.get(0).outerHtml();
|
||||
|
|
Loading…
Reference in New Issue