Java 26716 Upgrade flying-saucer-pdf-openpdf, jsoup, openhtmltopdf (#15263)

This commit is contained in:
Bipin kumar 2023-11-24 22:03:35 +05:30 committed by GitHub
parent 8abd7a07b5
commit 789ecf4581
5 changed files with 10 additions and 10 deletions

View File

@ -56,7 +56,7 @@
<properties>
<apache.commons-validator.version>1.7</apache.commons-validator.version>
<jsoup.version>1.15.4</jsoup.version>
<jsoup.version>1.16.2</jsoup.version>
</properties>
</project>

View File

@ -22,7 +22,7 @@
</dependencies>
<properties>
<jsoup.version>1.10.2</jsoup.version>
<jsoup.version>1.16.2</jsoup.version>
</properties>
</project>

View File

@ -2,7 +2,7 @@ package com.baeldung.jsoup;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.safety.Whitelist;
import org.jsoup.safety.Safelist;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
@ -13,7 +13,7 @@ public class PreservingLineBreaksUnitTest {
String strHTML = "<html><body>Hello\nworld</body></html>";
Document.OutputSettings outputSettings = new Document.OutputSettings();
outputSettings.prettyPrint(false);
String strWithNewLines = Jsoup.clean(strHTML, "", Whitelist.none(), outputSettings);
String strWithNewLines = Jsoup.clean(strHTML, "", Safelist.none(), outputSettings);
assertEquals("Hello\nworld", strWithNewLines);
}
@ -33,7 +33,7 @@ public class PreservingLineBreaksUnitTest {
jsoupDoc.select("p").before("\\n");
String str = jsoupDoc.html().replaceAll("\\\\n", "\n");
String strWithNewLines =
Jsoup.clean(str, "", Whitelist.none(), outputSettings);
Jsoup.clean(str, "", Safelist.none(), outputSettings);
assertEquals("Hello\nWorld\nParagraph", strWithNewLines);
}
}

View File

@ -112,11 +112,11 @@
<batik-transcoder.version>1.8</batik-transcoder.version>
<poi-ooxml.version>3.15</poi-ooxml.version>
<thymeleaf.version>3.0.11.RELEASE</thymeleaf.version>
<flying-saucer-pdf.version>9.1.20</flying-saucer-pdf.version>
<flying-saucer-pdf.version>9.3.1</flying-saucer-pdf.version>
<open-html-pdfbox.version>1.0.6</open-html-pdfbox.version>
<open-html-pdf-core.version>1.0.6</open-html-pdf-core.version>
<flying-saucer-pdf-openpdf.version>9.1.22</flying-saucer-pdf-openpdf.version>
<jsoup.version>1.14.2</jsoup.version>
<open-html-pdf-core.version>1.0.10</open-html-pdf-core.version>
<flying-saucer-pdf-openpdf.version>9.2.1</flying-saucer-pdf-openpdf.version>
<jsoup.version>1.16.2</jsoup.version>
</properties>
</project>

View File

@ -372,7 +372,7 @@
<mustache.version>0.9.6</mustache.version>
<!-- maven plugins -->
<maven-jibx-plugin.version>1.3.1</maven-jibx-plugin.version>
<jsoup.version>1.14.3</jsoup.version>
<jsoup.version>1.16.2</jsoup.version>
<htmlcleaner.version>2.25</htmlcleaner.version>
<jericho.version>3.4</jericho.version>
<bcel.version>6.7.0</bcel.version>