HI,
Im using a textarea form to allow users to add text to a db.
The textarea adds line breaks at the end of the text. It's easy for the user to do 'cos they can't see them.
When I do nl2br it adds these extra br tags at the end of the text.
How can I get rid of the extra trailing br tags?
At the moment I replace br br with br and loop through 5 times in the hope that they haven't added more than 5 line breaks at the end - but it's not a very good solution I think
Many thanks, Tony