string = $string; return $safe_string; } /** * Returns the string version of the Markup object. * * @return string * The safe string content. */ public function __toString() { return $this->string; } /** * Returns the string length. * * @return int * The length of the string. */ public function count() { return mb_strlen($this->string); } /** * Returns a representation of the object for use in JSON serialization. * * @return string * The safe string content. */ public function jsonSerialize() { return $this->__toString(); } }