Closed
Description
code to reproduce:
String input = "wow <p>http://test.com</p> such linked";
LinkExtractor linkExtractor = LinkExtractor.builder().build();
Iterable<LinkSpan> links = linkExtractor.extractLinks(input);
String result = Autolink.renderLinks(input, links, (link, text, sb) -> {
sb.append("<a href=\"");
sb.append(text, link.getBeginIndex(), link.getEndIndex());
sb.append("\">");
sb.append(text, link.getBeginIndex(), link.getEndIndex());
sb.append("</a>");
});
System.out.println(result);
expect:
wow <p><a href="http://test.com">http://test.com</a></p> such linked
actual:
wow <p><a href="http://test.com</p>">http://test.com</p></a> such linked
This seems to be a bug, do we support the skip_tags
feature of rinku?
Metadata
Metadata
Assignees
Labels
No labels