protected function openCloseTag($string)
    {
        if( $this->tag === true )
        {
            $script = $this->getScriptClass();

            $string = $script->open() . $string . $script->close();
        }

        $this->tag = false;

        return $string;
    }