lithium\util\StringDeprecated::clean()
Cleans up a String::insert()
formatted string with given $options
depending
on the 'clean'
option. The goal of this function is to replace all whitespace
and unneeded mark-up around place-holders that did not get replaced by String::insert()
.
Parameters
-
string
$str
The string to clean.
-
array
$options
Returns
stringThe cleaned string.
Source
public static function clean($str, array $options = []) {
$message = "lithium\util\String::clean() has been deprecated in favor of ";
$message .= "lithium\util\Text::clean().";
trigger_error($message, E_USER_DEPRECATED);
return Text::clean($str, $options);
}