Text node
Purpose
Text is an escaped scalar Node. Use for labels, messages, cells,
and captions. It never accepts trusted HTML.
Inputs
| Field | Required | Type | Behavior |
|---|---|---|---|
value |
yes | string, number, or boolean | Escaped before rendering. |
Boundary
Rendered text is escaped and contains no raw markup.
Go Shape
import "github.com/busdk/bus-gx/pkg/gx"
node := gx.Text("Hello <Bus>")