Skip to content

Commit

Permalink
Add get only string to remove the html from a string
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancoisbbs committed Aug 4, 2016
1 parent 0470ef5 commit a95fe17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Distilleries/Expendable/Helpers/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,4 +683,9 @@ public static function getUrlEmbeddable($url, $host = [], $checkSecure = true)
return $value;
}

public static function getOnlyString($str)
{
return strip_tags($str);
}

}

0 comments on commit a95fe17

Please sign in to comment.