Convert 'HtmlHelper' to Kotlin
-package com.fsck.k9.message.html;
+package com.fsck.k9.message.html
+import org.jsoup.Jsoup
+import org.jsoup.safety.Whitelist
-import org.jsoup.Jsoup;
-import org.jsoup.safety.Whitelist;
-
-
-public class HtmlHelper {
- public static String extractText(String html) {
- return Jsoup.clean(html, Whitelist.none());
+object HtmlHelper {
+ @JvmStatic
+ fun extractText(html: String): String {
+ return Jsoup.clean(html, Whitelist.none())
}
}
