Skip to content

Commit

Permalink
LSNBLDR-805 - Problem importing more than 1 item on a page (sakaiproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored Apr 25, 2017
1 parent 3ca313e commit fd5b5de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public String fixupInlineReferences(String htmlString) {
I think the ideal here would be that this only updates resources that are in the manifest, but really any
relative resources are going to be incorrect pulled out of a package and need an update.
*/
org.jsoup.nodes.Document doc = Jsoup.parse(htmlString);
org.jsoup.nodes.Document doc = Jsoup.parseBodyFragment(htmlString);
org.jsoup.select.Elements hrefs = doc.select("[href]");
org.jsoup.select.Elements srcs = doc.select("[src]");

Expand Down Expand Up @@ -434,7 +434,7 @@ public String fixupInlineReferences(String htmlString) {
}
}
}
htmlString = doc.toString();
htmlString = doc.body().html();
}

return htmlString;
Expand Down

0 comments on commit fd5b5de

Please sign in to comment.