public function parseForSave($text, &$errors, $is_signature = false)
    {
        // FIXME check text length
        if ($is_signature && (ForumSettings::get('p_sig_img_tag') !== '1' || User::get()['show_img_sig'] !== '1')) {
            $this->parser->disablePlugin('Autoimage');
            $this->parser->disablePlugin('Autovideo');
        }

        $xml  = $this->parser->parse($text);
//        $html = $this->renderer->render($xml);

        // TODO check parser errors ??? not found problems in parser
        // TODO check nestingLimit ??? not found problems in parser
        // TODO check $is_signature limits
//        $parserErrors = $this->parser->getLogger()->get();
//        if (!empty($parserErrors)) {
//tdie($parserErrors);
//        }
        return \s9e\TextFormatter\Unparser::unparse($xml);
    }