enum classafAtom::TextType

sys::Obj
  sys::Enum
    afAtom::TextType

@Serializable { simple=true }

Determines how Text content is encoded / escaped.

@see The Type Attribute

fromStr

Source

static new fromStr(Str name, Bool checked := true)

Return the TextType instance for the specified name. If not a valid name and checked is false return null, otherwise throw ParseErr.

html

Source

const static TextType html := ...

Denotes entity escaped html.

<title type="html">
  AT&amp;amp;T bought &lt;b&gt;by SBC&lt;/b&gt;!
</title>
text

Source

const static TextType text := ...

Denotes plain text with no entity escaped html.

<title type="text">AT&amp;T bought by SBC!</title>
vals

Source

const static TextType[] vals := ...

List of TextType values indexed by ordinal

xhtml

Source

const static TextType xhtml := ...

Denotes inline xhtml, wrapped in a div element with an XHTML namespace.

<title type="xhtml">
  <div xmlns="http://www.w3.org/1999/xhtml">
    AT&amp;T bought <b>by SBC</b>!
  </div>
</title>