markedSafe[$context]); } /** * Return whether this object is safe to be used as a URL * * @return bool */ public function isSafeAsURL() { return $this->isSafe('AsURL'); } /** * Return whether this object is safe to be used in CSS * * @return bool */ public function isSafeInCSS() { return $this->isSafe('InCSS'); } /** * Return whether this object is safe to be used in JavaScript * * @return bool */ public function isSafeInJS() { return $this->isSafe('InJS'); } /** * Return whether this object is safe to be used as a URL * * @return self */ public function markAsSafeAsURL() { $this->markedSafe['AsURL'] = true; return $this; } /** * Return whether this object is safe to be used in CSS * * @return self */ public function markAsSafeInCSS() { $this->markedSafe['InCSS'] = true; return $this; } /** * Return whether this object is safe to be used in JavaScript * * @return self */ public function markAsSafeInJS() { $this->markedSafe['InJS'] = true; return $this; } /** * Reset the "marked safe" statuses * * @return self */ public function resetSafeness() { $this->markedSafe = []; return $this; } }