AndieB Posted January 8, 2007 Share Posted January 8, 2007 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 More sharing options...
trq Posted January 8, 2007 Share Posted January 8, 2007 Take a look at the manual entry for [url=http://php.net/strip_tags]strip_tags[/url], it should take an optional argument for allowed tags. Link to comment https://forums.phpfreaks.com/topic/33323-strip_tags-funktion/#findComment-155698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.