I would like to add arbitrary bits of HTML (like <span>hello</span>) to an element. How do I do this in Dart?
I would like to add arbitrary bits of HTML (like <span>hello</span> ) to an
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add arbitrary bits of HTML to an element with
appendHtml('<span>some html</span>'), like this:The
appendHtmlmethod will parse the HTML and add the resulting node as the last child of the element.