Skip to content

Commit 0bc049c

Browse files
authored
Remove html <a/> tag from route on clockwork
1 parent b3b9a51 commit 0bc049c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Support/Clockwork/Converter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function convert($data)
7575
list($method, $uri) = explode(' ', $route['uri'], 2);
7676

7777
$output['routes'][] = [
78-
'action' => $controller,
78+
'action' => preg_replace('/<a\b[^>]*>(.*?)<\/a>/i', '', $controller),
7979
'after' => isset($route['after']) ? $route['after'] : null,
8080
'before' => isset($route['before']) ? $route['before'] : null,
8181
'method' => $method,

0 commit comments

Comments
 (0)