Closed dab246 closed 2 years ago
(Being able to display is better than nothing.)
Please list the corresponding tickets you opened upstream in the tickets so that we can all monitor them.
IMO if there is not quick fixes we may move forward with the sanitiing option when rendering fails IMO while waiting for more robust options coming from the eco-system.
Have you tried https://github.com/Sub6Resources/flutter_html
Seems more popular for what it is worth.
How the two compares?
Have you tried https://github.com/Sub6Resources/flutter_html
Seems more popular for what it is worth.
How the two compares?
I tried it and it can't display html content with nested table tags. You can read their feedback here. https://github.com/Sub6Resources/flutter_html/issues/810
After sanitizing html
content and removing attributes
with size equal to 0px
(Ex: font-size, width, height,...). All messages are displayed. But padding, background still not like the expected image.
I think we can live with this for now.
Solution is change to webview_inapp
library
Description
flutter_widget_from_html
library to display the content as html. In case the html content contains many css styles that the library cannot parse, the content cannot be rendered.Exp: Text message sent from email address
noreply@qa.open-paas.org
Solutions
sanitize_html
to clean html message contentResult
Expect