trait Format[T <: Appendable[T]] extends AnyRef

A template format defines how to properly integrate content for a type T (e.g. to prevent cross-site scripting attacks)

T

The underlying type that this format applies to.

Source
Format.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Format
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Appendable = T

Abstract Value Members

  1. abstract def empty: T

    Generate an empty appendable

  2. abstract def escape(text: String): T

    Integrate text after escaping special characters.

    Integrate text after escaping special characters. e.g. for HTML, “<” becomes “&lt;”

    text

    Text to integrate

  3. abstract def fill(elements: Seq[T]): T

    Fill an appendable with the elements

  4. abstract def raw(text: String): T

    Integrate text without performing any escaping process.

    Integrate text without performing any escaping process.

    text

    Text to integrate