library/Haste/InsertTags/InsertTags.php
public function replace($strTag, $blnCache, $strCache, $flags, $tags, $arrCache, $index, $count)
    {
        $elements = explode('::', $strTag);

        switch (strtolower($elements[0]))
        {
            case 'trimsplit':
                if (!$elements[1] || !$elements[2] || is_array($elements[2]) || is_object($elements[2]))
                {
                    return '';
                }

                return serialize(trimsplit($elements[1], $elements[2]));

                break;
            case 'encrypt':
                if (!$elements[1])
                {
                    return '';
                }

                return \Encryption::hash($elements[1]);
            break;
        }

        return false;
    }
public function replace($strTag, $blnCache, $strCache, $flags, $tags, $arrCache, $index, $count)
    {
        $elements = explode('::', $strTag);

        switch (strtolower($elements[0]))
        {
            case 'trimsplit':
                if (!$elements[1] || !$elements[2] || is_array($elements[2]) || is_object($elements[2]))
                {
                    return '';
                }

                return serialize(trimsplit($elements[1], $elements[2]));

                break;
            case 'encrypt':
                if (!$elements[1])
                {
                    return '';
                }

                return \Encryption::hash($elements[1]);
            break;
        }

        return false;
    }
public function replace ( $ strTag , $ blnCache , $ strCache , $ flags , $ tags , $ arrCache , $ index , $ count ) { $ elements = explode ( '::' , $ strTag ) ; switch ( strtolower ( $ elements [ 0 ] ) ) { case 'trimsplit' : if ( ! $ elements [ 1 ] || ! $ elements [ 2 ] || is_array ( $ elements [ 2 ] ) || is_object ( $ elements [ 2 ] ) ) { return '' ; } return serialize ( trimsplit ( $ elements [ 1 ] , $ elements [ 2 ] ) ) ; break ; case 'encrypt' : if ( ! $ elements [ 1 ] ) { return '' ; } return \ Encryption :: hash ( $ elements [ 1 ] ) ; break ; } return false ; }
Add additional tags

@param $strTag
@param $blnCache
@param $strCache
@param $flags
@param $tags
@param $arrCache
@param $index
@param $count

@return mixed Return false, if the tag was not replaced, otherwise return the value of the replaced tag
Add additional tags