Swat/SwatForm.php
protected function serializeHiddenField($value)
    {
        $value = SwatString::signedSerialize($value, $this->salt);

        // escape special characters that confuse browsers (mostly IE;
        // null characters confuse all browsers)
        $value = str_replace('\\', '\\\\', $value);
        $value = str_replace("\x00", '\x00', $value);
        $value = str_replace("\x0a", '\x0a', $value);
        $value = str_replace("\x0d", '\x0d', $value);

        return $value;
    }
protected function serializeHiddenField($value)
    {
        $value = SwatString::signedSerialize($value, $this->salt);

        // escape special characters that confuse browsers (mostly IE;
        // null characters confuse all browsers)
        $value = str_replace('\\', '\\\\', $value);
        $value = str_replace("\x00", '\x00', $value);
        $value = str_replace("\x0a", '\x0a', $value);
        $value = str_replace("\x0d", '\x0d', $value);

        return $value;
    }
protected function serializeHiddenField ( $ value ) { $ value = SwatString :: signedSerialize ( $ value , $ this -> salt ) ; // escape special characters that confuse browsers (mostly IE; // null characters confuse all browsers) $ value = str_replace ( '\\' , '\\\\' , $ value ) ; $ value = str_replace ( "\x00" , '\x00' , $ value ) ; $ value = str_replace ( "\x0a" , '\x0a' , $ value ) ; $ value = str_replace ( "\x0d" , '\x0d' , $ value ) ; return $ value ; }
Serializes a hidden field value into a string safe for including in
form data

@param mixed $value the hidden field value to serialize.

@return string the hidden field value serialized for safely including in
form data.
Serializes a hidden field value into a string safe for including in form data