src/Formatters/EmailFormatter.php 1 location
|
@@ 5-11 (lines=7) @@
|
2 |
|
|
3 |
|
namespace Woo\GridView\Formatters; |
4 |
|
|
5 |
|
class EmailFormatter implements IFormatter |
6 |
|
{ |
7 |
|
public function format($value): string |
8 |
|
{ |
9 |
|
return '<a href="mailto:' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>'; |
10 |
|
} |
11 |
|
} |
src/Formatters/UrlFormatter.php 1 location
|
@@ 5-11 (lines=7) @@
|
2 |
|
|
3 |
|
namespace Woo\GridView\Formatters; |
4 |
|
|
5 |
|
class UrlFormatter implements IFormatter |
6 |
|
{ |
7 |
|
public function format($value): string |
8 |
|
{ |
9 |
|
return '<a href="' . htmlspecialchars($value, ENT_QUOTES) . '">' . htmlentities($value) . '</a>'; |
10 |
|
} |
11 |
|
} |