You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
teohhanhui
added a commit
to teohhanhui/twig-prismic-extension
that referenced
this issue
Aug 9, 2018
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 ?
The text was updated successfully, but these errors were encountered: