mirror of
https://github.com/Livinglist/Hacki.git
synced 2025-08-26 11:17:22 +08:00
revert html util change. (#309)
This commit is contained in:
@ -34,6 +34,7 @@ abstract class HtmlUtil {
|
||||
static String parseHtml(String text) {
|
||||
return HtmlUnescape()
|
||||
.convert(text)
|
||||
.replaceAll('<p>', '\n')
|
||||
.replaceAllMapped(
|
||||
RegExp(r'\<i\>(.*?)\<\/i\>'),
|
||||
(Match match) => '*${match[1]}*',
|
||||
@ -42,7 +43,6 @@ abstract class HtmlUtil {
|
||||
RegExp(r'\<a href=\"(.*?)\".*?\>.*?\<\/a\>'),
|
||||
(Match match) => match[1] ?? '',
|
||||
)
|
||||
.replaceAll('\n', '\n\n')
|
||||
.replaceAll('<p>\n\n', '');
|
||||
.replaceAll('\n', '\n\n');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user