You are here

public function BusinessRulesUtil::toSafeLowerString in Business Rules 2.x

Same name and namespace in other branches
  1. 8 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\Util

Code

public function toSafeLowerString(&$string) {
  $string = trim(strtolower(htmlentities(strip_tags($string))));
  return $string;
}