value = $mixed->value; } else { $this->value = ($safe) ? $mixed : htmlspecialchars($mixed, ENT_COMPAT, 'UTF-8'); } } function __toString() { return $this->value; } public static function markSafe($string) { return new Pluf_Template_SafeString($string, true); } }