HtmlFormat

play.twirl.api.HtmlFormat$
object HtmlFormat extends Format[Html]

Formatter for HTML content.

Attributes

Graph
Supertypes
trait Format[Html]
class Object
trait Matchable
class Any
Self type
HtmlFormat.type

Members list

Type members

Inherited types

type Appendable = T

Attributes

Inherited from:
Format

Value members

Concrete methods

def escape(text: String): Html

Creates a safe (escaped) HTML fragment.

Creates a safe (escaped) HTML fragment.

Attributes

def fill(elements: Seq[Html]): Html

Create an HTML Fragment that holds other fragments.

Create an HTML Fragment that holds other fragments.

Attributes

def raw(text: String): Html

Creates a raw (unescaped) HTML fragment.

Creates a raw (unescaped) HTML fragment.

Attributes

Concrete fields

val empty: Html

Generate an empty HTML fragment

Generate an empty HTML fragment

Attributes