Hello,
I am creating a testimonials page on a clients website, from the admin page I built they can add new ones they receive, fine that works. However, when displaying it on the testimony page, and not in a <textarea> it looses its formatting. So I screwed around with <textarea> and got it to work except for I was having trouble dynamically setting the rows so you would not need to scroll to read each one.
So now I am using: nl2br($article[‘testimonial’]);
Which works great, but it still looses the indents. I know this is being nit picky, but does anyone have any better solutions?
Example:
echo:
I Love You
nl2br:
I
Love
You
What I want, as they entered it in the admin page:
I
love
you
I really appreciate it.
EDIT:
the site doesnt even indent it properly, what I want is indented on the first, double on second, triple on third