Skip to content

Commit 18cd622

Browse files
Hotfix
1 parent 845fdf1 commit 18cd622

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/Helpers/Helper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ class Helper
66
{
77
static public function stripTags(string $str): string
88
{
9-
return strip_tags($str, '<h1><h2><h3><h4><h5><h6><p><br><b><i><strong><mark><a><span><div><li><ul><ol><table><thead><td><tr><th><tbody><tfoot><blockquote><section><code><pre><aside><figure><img><iframe>');
9+
return strip_tags($str, '<h1><h2><h3><h4><h5><h6><p><br><b><i><u><strong><small><mark><a><span><div><li><ul><ol><table><thead><td><tr><th><tbody><tfoot><blockquote><section><code><pre><aside><figure><figcaption><img><iframe><video><audio><article><canvas><svg><source><legend><label><form><input><button><header><footer><nav><sub><sup><textarea><select><option><progress><hr><address><abbr>');
1010
}
1111

12-
static public function properUrl(string $str){
12+
static public function properUrl(string $str)
13+
{
1314
$validChars = preg_replace('/[^a-z0-9\-_]/', '-', mb_strtolower($str));
1415
return preg_replace(['/(-)+/', '/^-/', '/-$/'], ['-', '', ''], $validChars);
1516
}

0 commit comments

Comments
 (0)