fix for parsing of image links inside of anchor links (image-links)

pull/1/head
Michael Peter Christen 12 years ago
parent 61c5e40687
commit 57e00baf26

@ -234,15 +234,10 @@ public final class TransformerWriter extends Writer {
}
// it's a tag! which one?
StringBuilder ret0 = new StringBuilder();
if (opening) {
// case (5): the opening should not be here. we close the previous tag as if it had been closed correctly
// this may happen if the html is not well-formed, like forgotten close tags
ret0.append(filterTagCloseing(quotechar));
// after this point we just go on and process a new tag
ret0.append(filterTagOpening(tag, content, quotechar));
return ret0.toString().toCharArray();
// case (5): the opening should not be here. But we keep the order anyway
this.filterCont.append(filterTagOpening(tag, content, quotechar));
return filterTagCloseing(quotechar);
}
if (!tag.equalsIgnoreCase(this.filterTag)) {

Loading…
Cancel
Save