escape($matches[1]); $text = $stringsEscaper->escape($matches[2]); $formula = sprintf('HYPERLINK("%s","%s")', $url, $text); return sprintf( '%s%s', $columnIndex, $rowIndex, $formula, $text); } return null; } }