/**
* Attempt to parse link title (sans quotes)
*
* @param Cursor $cursor
*
* @return null|string The string, or null if no match
*/
public static function parseLinkTitle(Cursor $cursor)
{
if ($title = $cursor->match(RegexHelper::getInstance()->getLinkTitleRegex())) {
// Chop off quotes from title and unescape
return RegexHelper::unescape(substr($title, 1, strlen($title) - 2));
}
}