mirror of
https://github.com/nuclearfog/Shitter.git
synced 2025-01-28 18:09:45 +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.outputSettings(OUTPUT_SETTINGS);
|
||||||
jsoupDoc.select("br").after("\\n");
|
jsoupDoc.select("br").after("\\n");
|
||||||
jsoupDoc.select("p").before("\\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 = Jsoup.clean(str, "", Safelist.none(), OUTPUT_SETTINGS);
|
||||||
|
text = text.replace("<", "<").replace(">", ">").replace("&", "&");
|
||||||
if (text.startsWith("\n")) {
|
if (text.startsWith("\n")) {
|
||||||
text = text.substring(1);
|
text = text.substring(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user