src/Blocks/BlockImage.php
protected function getDictionary(array $foundMatches)
    {
        $dictionary = [
            '{alt}' => htmlentities($foundMatches[1]),
            '{src}' => $foundMatches[2],
            '{extra}' => '',
        ];

        preg_match('/"(.*)"/', $foundMatches[2], $found);

        if (!empty($found)) {
            $dictionary['{src}'] = trim(str_replace($found[0], '', $foundMatches[2]));
            $dictionary['{extra}'] = ' title="' . $found[1] . '"';
        }

        return $dictionary;
    }
protected function getDictionary(array $foundMatches)
    {
        $dictionary = [
            '{alt}' => htmlentities($foundMatches[1]),
            '{src}' => $foundMatches[2],
            '{extra}' => '',
        ];

        preg_match('/"(.*)"/', $foundMatches[2], $found);

        if (!empty($found)) {
            $dictionary['{src}'] = trim(str_replace($found[0], '', $foundMatches[2]));
            $dictionary['{extra}'] = ' title="' . $found[1] . '"';
        }

        return $dictionary;
    }
@param array $foundMatches

@return array