alihassan143 / htmltopdfwidgets

Html To Pdf
https://pub.dev/packages/htmltopdfwidgets
Apache License 2.0
12 stars 18 forks source link

Unknown node type: <html br> (Package unable to parse html content) #20

Closed Frankdroid7 closed 7 months ago

Frankdroid7 commented 7 months ago

I keep getting this error when I call HTMLToPdf().convert(htmlContent)

Screenshot 2024-01-16 at 21 00 42

The error points to line 392 here

Screenshot 2024-01-16 at 21 06 23
alihassan143 commented 7 months ago

@Frankdroid7 can you share your html sample? you can clearly see that html is not correct their is some issue with html tags

is not a proper tag
Frankdroid7 commented 7 months ago

hm weird stuff, there is no <html br> in my Html content.

To test the issue, I added <html br> to the code sample you uploaded to pub.dev and it still worked.

Screenshot 2024-01-17 at 08 11 28

This code worked fine even with the <html br> tag

alihassan143 commented 7 months ago

can you share your html sample so it will be easy to debug

Frankdroid7 commented 7 months ago

Here it is:

https://gist.github.com/Frankdroid7/f36bfcd7b52e45e6b94ea27133f416fd

Thanks

Frankdroid7 commented 7 months ago

Any update please

alihassan143 commented 7 months ago

@Frankdroid7 currently i am busy in other things i will update you when i am free and found any bug

Frankdroid7 commented 7 months ago

Alright thanks

Here it is:

https://gist.github.com/Frankdroid7/f36bfcd7b52e45e6b94ea27133f416fd

Thanks

alihassan143 commented 7 months ago

@Frankdroid7 fixed