trait Format[T <: Appendable[T]] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- Format
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Appendable = T
Abstract Value Members
- abstract def empty: T
Generate an empty appendable
- abstract def escape(text: String): T
Integrate
text
after escaping special characters.Integrate
text
after escaping special characters. e.g. for HTML, “<” becomes “<”- text
Text to integrate
- abstract def fill(elements: Seq[T]): T
Fill an appendable with the elements
- abstract def raw(text: String): T
Integrate
text
without performing any escaping process.Integrate
text
without performing any escaping process.- text
Text to integrate
A template format defines how to properly integrate content for a type
T
(e.g. to prevent cross-site scripting attacks)The underlying type that this format applies to.