Skip to content

Commit

Permalink
Merge pull request #8 from nguyenanhung/v2.x
Browse files Browse the repository at this point in the history
Release version 2.0.6
  • Loading branch information
nguyenanhung committed Aug 4, 2023
2 parents ee007ad + da0cf54 commit b993148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function is_php($version): bool
*/
function escapeHtml($string)
{
if ($string === null) {
return null;
if (empty($string)) {
return $string;
}

return (new Escape())->escapeHtml($string);
Expand Down
2 changes: 1 addition & 1 deletion src/Escape.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/
class Escape
{
const VERSION = '2.0.5';
const VERSION = '2.0.6';

/**
* Character set
Expand Down

0 comments on commit b993148

Please sign in to comment.