Jump to content

strip_tags() funktion


AndieB

Recommended Posts

Hi all!

I am using a WYSIWYG edit to write a newsletter via a FORM and get HTML formatting on my e-mail. Now, I also want to make sure that the ext I'm writing will be sent in PLAIN/TEXT (MIME format) when sending the e-mail in case someone does not have a e-mail Client that supports HTML formatted text.

I found the strip_tags() funktion that will "strip" every tag from what I posted via the WYSIWYG edit is indeed removed with this function, but now I have consequencial issue. The "plain/text" formatting is now all written in one row (one sentece). It did also remove the linebreak (<br />).

How can I make sure to at least have the linebreaks (<br />) converted into "plain/text" linebreak (is that back-slash plus n? \n ).

Anyone who can help me out?

Thanks in advance!!

Sincerely,
Andreas
Link to comment
https://forums.phpfreaks.com/topic/33323-strip_tags-funktion/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.