ReadHTMLString reads HTML from the given string and adds corresponding Cogent Core widgets to the given [core.Widget], using the given context.
(ctx *Context, parent core.Widget, s string)
| 28 | // ReadHTMLString reads HTML from the given string and adds corresponding |
| 29 | // Cogent Core widgets to the given [core.Widget], using the given context. |
| 30 | func ReadHTMLString(ctx *Context, parent core.Widget, s string) error { |
| 31 | b := bytes.NewBufferString(s) |
| 32 | return ReadHTML(ctx, parent, b) |
| 33 | } |
| 34 | |
| 35 | // readHTMLNode reads HTML from the given [*html.Node] and adds corresponding |
| 36 | // Cogent Core widgets to the given [core.Widget], using the given context. |