I find myself having to strip out \n chars when getting RichText as plaintext and wonder if this could change to only join multiple blocks rather than append a newline to each?
Strip the last newline char, something like:
public static function asText($richText)
{
...
return substr($result, 0, -1)
}
Or is the a reason why a newline is always appended ?
I find myself having to strip out
\n
chars when getting RichText as plaintext and wonder if this could change to only join multiple blocks rather than append a newline to each?Strip the last newline char, something like:
Or is the a reason why a newline is always appended ?