function _bootstrap_is_simple_string in Express 8
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.
See also
\Drupal\bootstrap\Utility\Unicode::isSimple()
File
- themes/
contrib/ bootstrap/ deprecated.php, line 541 - This contains deprecated functions that will be removed in a future release.
Code
function _bootstrap_is_simple_string($string, $length = 250, $allowed_tags = NULL, &$html = FALSE) {
Bootstrap::deprecated();
return Unicode::isSimple($string, $length, $allowed_tags, $html);
}