Element.this

Constructs an Element given a name and a string to be used as a Text interior.

  1. this(string name, string interior)
    class Element
    @safe pure
    this
    (
    string name
    ,
    string interior = null
    )
  2. this(const(Tag) tag_)

Parameters

name string

the name of the element.

interior string

(optional) the string interior.

Examples

auto element = new Element("title","Serenity")
    // constructs the element <title>Serenity</title>

Meta