-
-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom tags #354
Comments
@PRSolucoes We've had requests for this in the past, but I'm not sure if this is what flutter_html is made for. We really want it to be for rendering HTML, not for rendering a web app. I would recommend normalizing your HTML before feeding it through flutter_html This is also a duplicate of #309 |
And how can you solve it?? |
@fehernyul The only way to do so would be to normalize your HTML. You could regex it, you could parse it and recursively edit the tree, stringify, and then feed it into flutter_html, change the source so it uses standard HTML tags rather than non-standard tags or web component tags. There are many different ways one could go about it |
An other possibility is to use custom tags and use a custom renderer for them. There you need to define the widget for the corresponding tag. So it's possible to define the behavior yourself. |
Hi,
I want support custom tags like J. See my example:
I want paint with red, but the text simply is not rendered.
My code:
For common tags work nice, but for J the text is not rendered.
Can you help me?
Thanks.
The text was updated successfully, but these errors were encountered: