public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }
public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }
public void comment(XMLString text, Augmentations augs) throws XNIException { flushTextBuffer(); // Add comments as comment nodes - needed to support sanitization // of SocialMarkup-parsed content Node comment = getDocument().createComment(new String(text.ch, text.offset, text.length)); appendChild(comment); }
@Override protected Document parseDomImpl(String source) throws GadgetException { DocumentHandler handler; HTMLConfiguration config = newConfiguration(); try { handler = parseHtmlImpl(source, config, new NormalizingTagBalancer()); } catch (IOException ioe) { return null; } Document document = handler.getDocument(); document.appendChild(DomUtil.getFirstNamedChildNode(handler.getFragment(), "html")); fixNekoWeirdness(document); return document; }
@Override protected Document parseDomImpl(String source) throws GadgetException { DocumentHandler handler; HTMLConfiguration config = newConfiguration(); try { handler = parseHtmlImpl(source, config, new NormalizingTagBalancer()); } catch (IOException ioe) { return null; } Document document = handler.getDocument(); document.appendChild(DomUtil.getFirstNamedChildNode(handler.getFragment(), "html")); fixNekoWeirdness(document); return document; }
@Override protected Document parseDomImpl(String source) throws GadgetException { DocumentHandler handler; HTMLConfiguration config = newConfiguration(); try { handler = parseHtmlImpl(source, config, new NormalizingTagBalancer()); } catch (IOException ioe) { return null; } Document document = handler.getDocument(); document.appendChild(DomUtil.getFirstNamedChildNode(handler.getFragment(), "html")); fixNekoWeirdness(document); return document; }