You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then create a new url definition and add it to the parser:
$urlValidator = new \My\Own\UrlValidator();
/* [url] link tag */$builder = new \JBBCode\CodeDefinitionBuilder('url', '<a href="{param}">{param}</a>');
$builder->setParseContent(false)->setBodyValidator($urlValidator);
// Place the CodeDefinition into the parser$parser->addCodeDefinition($builder->build());
I've tried your way but didn't work.
Actually, it recognize 'http://google.com' as URL, then the link becomes http://domain.com/'http://google.com' , validation rules doesn't help to strip quote and return correct value? 'http://google.com' -> http://google.com
It works with url bbcode like :
[url=http://google.com]abc[/url]
But failed to work with
[url='http://google.com']abc[/url]
The text was updated successfully, but these errors were encountered: