Escaping

scalatags.Escaping
object Escaping

Utility methods related to validating and escaping XML; used internally but potentially useful outside of Scalatags.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Escaping.type

Members list

Value members

Concrete methods

def escape(text: String, s: Writer): Unit

Code to escape text HTML nodes. Based on code from scala.xml

Code to escape text HTML nodes. Based on code from scala.xml

Attributes

def validAttrName(s: String): Boolean

Check if 's' is a valid attribute name.

Check if 's' is a valid attribute name.

Attributes

def validTag(s: String): Boolean

Uses a regex to check if something is a valid tag name.

Uses a regex to check if something is a valid tag name.

Attributes