Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislawfortonski committed Aug 22, 2021
1 parent 845fdf1 commit 18cd622
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ class Helper
{
static public function stripTags(string $str): string
{
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>');
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>');
}

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

0 comments on commit 18cd622

Please sign in to comment.