src/Helper/ShortCodesProcessor.php
public function parseContent($content)
    {
        if (count($this->shortCodesTags) == 0) {
            return $content;
        }

        $context = $this;

        return preg_replace_callback(
            '/' . $this->generateShortCodesRegex() . '/s',
            function ($matches) use ($context) {
                return $context->parseShortCodeTag($matches);
            },
            $content
        );
    }
public function parseContent($content)
    {
        if (count($this->shortCodesTags) == 0) {
            return $content;
        }

        $context = $this;

        return preg_replace_callback(
            '/' . $this->generateShortCodesRegex() . '/s',
            function ($matches) use ($context) {
                return $context->parseShortCodeTag($matches);
            },
            $content
        );
    }
Parse content

@param string $content content to be parsed

@return string