TemplateSafeness
trait TemplateSafeness
Properties
protected array | $markedSafe |
Methods
Return whether this object is safe to be used in given context
Return whether this object is safe to be used as a URL
Return whether this object is safe to be used in CSS
Return whether this object is safe to be used in JavaScript
Return whether this object is safe to be used as a URL
Return whether this object is safe to be used in CSS
Return whether this object is safe to be used in JavaScript
Reset the "marked safe" statuses
Details
at line 23
protected bool
isSafe(string $context)
Return whether this object is safe to be used in given context
at line 34
bool
isSafeAsURL()
Return whether this object is safe to be used as a URL
at line 44
bool
isSafeInCSS()
Return whether this object is safe to be used in CSS
at line 54
bool
isSafeInJS()
Return whether this object is safe to be used in JavaScript
at line 64
TemplateSafeness
markAsSafeAsURL()
Return whether this object is safe to be used as a URL
at line 76
TemplateSafeness
markAsSafeInCSS()
Return whether this object is safe to be used in CSS
at line 88
TemplateSafeness
markAsSafeInJS()
Return whether this object is safe to be used in JavaScript
at line 100
TemplateSafeness
resetSafeness()
Reset the "marked safe" statuses