Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new bdo element with child nodes. Example: bdo.New(text.Text("Hello")) Renders: <bdo>Hello</bdo>
func RawText ¶
func RawText(str string) *element
RawText Creates a new bdo element with raw text content as unescaped HTML. Example: bdo.RawText("<em>Text</em>").Dir(dir.RightToLeft) Renders: <bdo dir="rtl"><em>Text</em></bdo>
func RawTextf ¶
RawTextf Creates a new bdo element with formatted raw text content as unescaped HTML using text.RawTextf. Example: bdo.RawTextf("<strong>%s</strong>", "Text").Dir(dir.RightToLeft) Renders: <bdo dir="rtl"><strong>Text</strong></bdo>
func Static ¶
func Static(str string) *element
Static Creates a new bdo element with static text content. Example: bdo.Static("ABC").Dir(dir.LeftToRight) Renders: <bdo dir="ltr">ABC</bdo>