Markdownify\Converter::handleText PHP Метод

handleText() защищенный Метод

handle plain text
protected handleText ( ) : void
Результат void
    protected function handleText()
    {
        if ($this->hasParent('pre') && strpos($this->parser->node, "\n") !== false) {
            $this->parser->node = str_replace("\n", "\n" . $this->indent, $this->parser->node);
        }
        if (!$this->hasParent('code') && !$this->hasParent('pre')) {
            // entity decode
            $this->parser->node = $this->decode($this->parser->node);
            if (!$this->skipConversion) {
                // escape some chars in normal Text
                $this->parser->node = preg_replace($this->escapeInText['search'], $this->escapeInText['replace'], $this->parser->node);
            }
        } else {
            $this->parser->node = str_replace(array('"', '&apos'), array('"', '\''), $this->parser->node);
        }
        $this->out($this->parser->node);
        $this->lastClosedTag = '';
    }