Jump to content
xisto Community
Sign in to follow this  
iGuest

How do I remove <br /> tags from textarea data?

Recommended Posts

Okay, I'll try to get straight to the point:

I have a form on a PHP enabled subdomain that (thanks to 101) both displays submitted data for the user's convenience and posts that data to an email address.

 

Here's the situation:

Data posted within the textarea field of the form shows up exactly as submitted (with all linebreaks and spaces between paragraphs intact) except that wherever a linebreak occurs, there's an annoying <br /> tag. It all looks rather messy, especially when the sender uses lots linebreaks of paragraphs. I wouldn't mind so much if the data were for my eyes only but it's actually being sent to a client's Hotmail address, as it's his site that I'm working on.

 

Other than posting the form's data in HTML format (instead of plaintext, as is presently the case), is there any way to get rid of those tags? :idea: A PHP function perhaps?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.