mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-15 19:10:37 +01:00
bug fix
This commit is contained in:
parent
b89a821ce4
commit
725d324995
@ -98,8 +98,9 @@ public class MastodonStatus implements Status {
|
||||
jsoupDoc.outputSettings(OUTPUT_SETTINGS);
|
||||
jsoupDoc.select("br").after("\\n");
|
||||
jsoupDoc.select("p").before("\\n");
|
||||
String str = jsoupDoc.html().replaceAll("\\\\n", "\n");
|
||||
String str = jsoupDoc.html().replace("\\n", "\n");
|
||||
text = Jsoup.clean(str, "", Safelist.none(), OUTPUT_SETTINGS);
|
||||
text = text.replace("<", "<").replace(">", ">").replace("&", "&");
|
||||
if (text.startsWith("\n")) {
|
||||
text = text.substring(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user