Right now, I'm designing a forum. I'm nearly done, but have one last bug I can't seem to nail down.
When users submit a post, it goes through some validation. If it fails, the post doesn't get submitted but instead gets put back into the text-box so they don't lose what they wrote and they get an error message saying what to fix (eg. That they need a title).
However, when it gets returned, I can't return it raw -- because if they have a </textarea> in their post it will break the page. But, if I put it through htmlentities or something similar, I get slashes all through their post which can put them over the character limit.
Can anyone help me find a solution to this?