public function BusinessRulesUtil::toSafeLowerString in Business Rules 8
Same name and namespace in other branches
- 2.x src/Util/BusinessRulesUtil.php \Drupal\business_rules\Util\BusinessRulesUtil::toSafeLowerString()
Convert the string in a safe lowercase format.
Parameters
string $string: The string to convert to a safe lower value.
Return value
string The safe lowercase string.
File
- src/
Util/ BusinessRulesUtil.php, line 1112
Class
- BusinessRulesUtil
- Class BusinessRulesUtil.
Namespace
Drupal\business_rules\UtilCode
public function toSafeLowerString(&$string) {
$string = trim(strtolower(htmlentities(strip_tags($string))));
return $string;
}