|
|
|
@ -34,6 +34,7 @@ class HtmlMessage extends StatelessWidget {
|
|
|
|
|
static const Set<String> allowedHtmlTags = {
|
|
|
|
|
'font',
|
|
|
|
|
'del',
|
|
|
|
|
's',
|
|
|
|
|
'h1',
|
|
|
|
|
'h2',
|
|
|
|
|
'h3',
|
|
|
|
@ -412,6 +413,7 @@ class HtmlMessage extends StatelessWidget {
|
|
|
|
|
'strong' => const TextStyle(fontWeight: FontWeight.bold),
|
|
|
|
|
'em' || 'i' => const TextStyle(fontStyle: FontStyle.italic),
|
|
|
|
|
'del' ||
|
|
|
|
|
's' ||
|
|
|
|
|
'strikethrough' =>
|
|
|
|
|
const TextStyle(decoration: TextDecoration.lineThrough),
|
|
|
|
|
'u' => const TextStyle(decoration: TextDecoration.underline),
|
|
|
|
|