Example:
$string = "My name is Reek \nit rhymes with leek";
$escaped = Strings::escapeNewLines($string);
Result:
My name is <strong>Reek</strong>
it rhymes with leek
public static escapeNewLines ( string $string ) : string | ||
$string | string | |
Результат | string |