1 | <?php namespace Anomaly\Streams\Platform\Support; |
||
12 | class Str extends \Illuminate\Support\Str |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * Return a humanized string. |
||
17 | * |
||
18 | * @param $value |
||
19 | * @param string $separator |
||
20 | * @return string |
||
21 | */ |
||
22 | public function humanize($value, $separator = '_') |
||
26 | |||
27 | /** |
||
28 | * Limit the number of characters in a string |
||
29 | * while preserving words. |
||
30 | * |
||
31 | * https://github.com/laravel/framework/pull/3547/files |
||
32 | * |
||
33 | * @param string $value |
||
34 | * @param int $limit |
||
35 | * @param string $end |
||
36 | * @return string |
||
37 | */ |
||
38 | public function truncate($value, $limit = 100, $end = '...') |
||
60 | |||
61 | /** |
||
62 | * Linkify the provided text. |
||
63 | * |
||
64 | * @param $text |
||
65 | * @param array $options |
||
66 | * @return string |
||
67 | */ |
||
68 | public function linkify($text, array $options = []) |
||
72 | |||
73 | /** |
||
74 | * Return purified HTML. |
||
75 | * |
||
76 | * @param $html |
||
77 | * @return string |
||
78 | */ |
||
79 | public function purify($html) |
||
83 | } |
||
84 |