Hello,
I often have the case where I render the value of a textarea in the content as value. Unfortunarely SEBLOD doesn't render the line breaks.
Example:
In the site form user enters this into textarea (no wysiwig):
line 1
line 2
If I set Variation to "Value" in the content, SEBLOD renders like this:
line 1 line 2
This is not so nice.
If I set Variation to "Readonly", SEBLOD renders the line breaks, but also the whole textarea with borders, background and font. This doesn't look very nice in he most cases.
What can we do about this?
After reading up on the subject in general HTML and PHP terms, I found that line breaks of a textarea can be preserved with a little bit of PHP code:
str_replace("\r",'<br>',$string);
Now how to implement this into SEBLOD without custom template?
Maybe field 42 can help?
Any suggestions are much appreciated.