| 1 | <?php |
||
| 5 | class LinkHighLighter { |
||
| 6 | |||
| 7 | private $regex = '/(^|[^"])(((f|ht){1}(tp|tps):\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i'; |
||
| 8 | private $replaceToString = '\\1<a href="\\2" target="_blank">\\2</a>'; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * |
||
| 12 | * @param string $content |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | public function replaceWebLinks($content) { |
||
| 22 | |||
| 23 | } |
||
| 24 |