fix a css selector bug=.=!

pull/17/head
yihua.huang 12 years ago
parent 7020b8648d
commit 9338e13c38

@ -27,7 +27,7 @@ public class CssSelector implements Selector {
public String select(String text) { public String select(String text) {
Document doc = Jsoup.parse(text); Document doc = Jsoup.parse(text);
Elements elements = doc.select(selectorText); Elements elements = doc.select(selectorText);
if (CollectionUtils.isNotEmpty(elements)) { if (CollectionUtils.isEmpty(elements)) {
return null; return null;
} }
return elements.get(0).outerHtml(); return elements.get(0).outerHtml();

Loading…
Cancel
Save