/** * Attempt to parse an entity, return Entity object if successful. * * @return true if processed characters false otherwise */ @Override public boolean parseEntity() { BasedSequence m; if ((m = match(myParsing.ENTITY_HERE)) != null) { HtmlEntity node = new HtmlEntity(m); appendNode(node); return true; } else { return false; } }
private void visit(HtmlEntity node) { myEndOffset = node.getEndOffset(); }
@Override public void render(final NodeFormatterContext context, final MarkdownWriter markdown) { markdown.appendNonTranslating(node.getChars()); } });
private void visit(HtmlEntity node) { myEndOffset = node.getEndOffset(); }
/** * Attempt to parse an entity, return Entity object if successful. * * @return true if processed characters false otherwise */ @Override public boolean parseEntity() { BasedSequence m; if ((m = match(myParsing.ENTITY_HERE)) != null) { HtmlEntity node = new HtmlEntity(m); appendNode(node); return true; } else { return false; } }
private void render(final HtmlEntity node, final DocxRendererContext docx) { docx.text(node.getChars().unescape()); }
private void render(HtmlEntity node, NodeRendererContext context, HtmlWriter html) { html.raw(node.getChars().unescape()); }
private void visit(HtmlEntity node) { out.append(node.getChars().unescape()); }
private void render(HtmlEntity node, NodeRendererContext context, HtmlWriter html) { html.raw(node.getChars().unescape()); }
private void visit(HtmlEntity node) { out.append(node.getChars().unescape()); }
private void render(final HtmlEntity node, NodeFormatterContext context, final MarkdownWriter markdown) { if (context.getRenderPurpose() == FORMAT) { markdown.append(node.getChars()); } else { context.customPlaceholderFormat(htmlEntityPlaceholderGenerator, new TranslatingSpanRender() { @Override public void render(final NodeFormatterContext context, final MarkdownWriter markdown) { markdown.appendNonTranslating(node.getChars()); } }); } }
@Override public void render(final NodeFormatterContext context, final MarkdownWriter markdown) { markdown.appendNonTranslating(node.getChars()); } });
private void render(HtmlEntity node, NodeRendererContext context, HtmlWriter html) { html.raw(node.getChars().unescape()); }
private void visit(HtmlEntity node) { out.append(node.getChars().unescape()); }
private void render(final HtmlEntity node, NodeFormatterContext context, final MarkdownWriter markdown) { if (context.getRenderPurpose() == FORMAT) { markdown.append(node.getChars()); } else { context.customPlaceholderFormat(htmlEntityPlaceholderGenerator, new TranslatingSpanRender() { @Override public void render(final NodeFormatterContext context, final MarkdownWriter markdown) { markdown.appendNonTranslating(node.getChars()); } }); } }