app/Fact.php
public function attribute($tag): string
    {
        if (preg_match('/\n2 (?:' . $tag . ') ?(.*(?:(?:\n3 CONT ?.*)*)*)/', $this->gedcom, $match)) {
            return preg_replace("/\n3 CONT ?/", "\n", $match[1]);
        }

        return '';
    }
public function attribute($tag): string
    {
        if (preg_match('/\n2 (?:' . $tag . ') ?(.*(?:(?:\n3 CONT ?.*)*)*)/', $this->gedcom, $match)) {
            return preg_replace("/\n3 CONT ?/", "\n", $match[1]);
        }

        return '';
    }
public function attribute ( $ tag ) : string { if ( preg_match ( '/\n2 (?:' . $ tag . ') ?(.*(?:(?:\n3 CONT ?.*)*)*)/' , $ this -> gedcom , $ match ) ) { return preg_replace ( "/\n3 CONT ?/" , "\n" , $ match [ 1 ] ) ; } return '' ; }
Get the value of level 2 data in the fact

@param string $tag

@return string
Get the value of level 2 data in the fact