Possibility of extracting a TextSpan
out of a text-only HTML?
#1334
Labels
enhancement
New feature or request
TextSpan
out of a text-only HTML?
#1334
Use case
Hi! Thanks for this amazing project, really saved us from a hassle of building an HTML parser :)
We have a use-case where we need to render a HTML text coming from the server as a TextSpan, so that we can insert it in a
Text.rich()
alongside other TextSpans. It's guaranteed from the server that the HTML text is a single paragraph containing only<b>
,<i>
, and<u>
tags.After looking through the library, I couldn't find an easy way to achieve this.
Proposal
Add an easy way to create a
TextSpan
from aBuildTree
, instead of a full widgetThe text was updated successfully, but these errors were encountered: