function _bootstrap_is_simple_string
8.x-3.x deprecated.php | _bootstrap_is_simple_string($string, $length = 250, $allowed_tags = NULL, &$html = FALSE) |
7.x-3.x common.inc | _bootstrap_is_simple_string($string, $length = 250, $allowed_tags = NULL, &$html = FALSE) |
Determines if a string of text is considered "simple".
// Before.
$simple = _bootstrap_is_simple_string($string, $length, $allowed_tags, $html);
// After.
use Drupal\bootstrap\Utility\Unicode;
$simple = Unicode::isSimple($string, $length, $allowed_tags, $html);
Parameters
string $string: The string of text to check "simple" criteria on.
int|false $length: The length of characters used to determine whether or not $string is considered "simple". Set explicitly to FALSE to disable this criteria.
array|false $allowed_tags: An array of allowed tag elements. Set explicitly to FALSE to disable this criteria.
bool $html: A variable, passed by reference, that indicates whether or not the string contains HTML.
Return value
bool Returns TRUE if the $string is considered "simple", FALSE otherwise.
Deprecated
Will be removed in a future release.
Source ./deprecated.php (line 597)
function _bootstrap_is_simple_string($string, $length = 250, $allowed_tags = NULL, &$html = FALSE) {
Bootstrap::deprecated();
return Unicode::isSimple($string, $length, $allowed_tags, $html);
}