Skip to content
Permalink
Browse files Browse the repository at this point in the history
+ sanitize xss function
  • Loading branch information
tramyardg committed Mar 28, 2022
1 parent 2a9161e commit 3aa5fdd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/Util.php
Expand Up @@ -36,4 +36,11 @@ public static function displayAlertV2($message, $type)
<p class="mb-0">' . $message["footer"] . '</p>
</div>';
}

public static function sanitize_xss($value)
{
return htmlspecialchars(strip_tags($value));
}


}

0 comments on commit 3aa5fdd

Please sign in to comment.