html fallback

This commit is contained in:
55nknown 2022-11-21 10:11:24 +01:00
parent 17cffc0576
commit d3e5fc99ea
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ extension StringFormatUtils on String {
htmlString = htmlString.replaceAll(RegExp(r'<p ?>'), "");
htmlString = htmlString.replaceAll(RegExp(r'</p ?>'), "\n");
var document = parse(htmlString);
return document.body?.text.trim() ?? "";
return document.body?.text.trim() ?? htmlString;
}
String limit(int max) {

@ -1 +1 @@
Subproject commit 2b4ed2a4d1074ce99b1380b7fd456547265f413d
Subproject commit 5faf290b649604f35dc8741cb90f24030ba5f31c