Devise\Pages\Interpreter\DeviseParser::getDeviseTags PHP Method

getDeviseTags() public method

Get the list of regex'ed devise tags out of the html
public getDeviseTags ( string $html ) : array
$html string
return array
    public function getDeviseTags($html)
    {
        $tags = [];
        $matches = $this->matches($html, "/\\s?data-devise=[\"]([^\"]*)[\"]/");
        foreach ($matches as $match) {
            $tags[] = new DeviseTag($match[0]);
        }
        $matches = $this->matches($html, "/\\s?data-devise=[']([^']*)[']/");
        foreach ($matches as $match) {
            $tags[] = new DeviseTag($match[0]);
        }
        $matches = $this->matches($html, "/\\s?data-devise-<\\?php echo devise_tag_cid\\(((?!\\?>).)*\\) \\?>/");
        foreach ($matches as $match) {
            $tags[] = new DeviseTag($match[0], 'parsed');
        }
        $matches = $this->matches($html, "/\\s?data-devise-create-model=[\"'] *([^\"'])*[\"']/");
        foreach ($matches as $match) {
            $tags[] = new DeviseTag($match[0], 'creator');
        }
        return $tags;
    }