Open Vignesh-Dart opened 6 months ago
@Vignesh-Dart If you pass invalid HTML to an HTML renderer, of course it'll have unexpected results.
The code assumes an Ordered List (<ol>
) for all List Item tags (<li>
), but without a parent wrapping tag, it can't tell how many are in the list.
'''<ol><li>One</li>\r\n<li>Two</li>\r\n<li>Three</li></ol>'''
Should give you
1. One
2. Two
3. Three
Or
'''<ul><li>One</li>\r\n<li>Two</li>\r\n<li>Three</li></ul>'''
Should give you:
• One
• Two
• Three
"0" is added in every list tag:
HTML to reproduce the issue:
`var data1 = '''
Html
widget configuration:Html( data: data1, style: { "html": Style( fontSize: FontSize(15.1), fontWeight: FontWeight.w500, ), }, ),
Expected behavior:
Remove "0" in every
<li>
tagScreenshots:
Versions:
flutter_html: ^3.0.0-beta.2