...

View Full Version : Plaintext HTML from PHP/MYSQL



tsidell
12-03-2008, 05:20 PM
I am developing a news forum when the user clicks on Publish an email should get sent to me with Javascript along with HTML code and the information the user has provided. I run into the problem of converting the HTML into plaintext. It picks up the HTML tags. The email should look like the markuphtml without the markups in plain TXT so I can just copy and paste. Any suggestions

Fumigator
12-03-2008, 05:56 PM
Can you show us examples of the text and how this text is being created?

tsidell
12-03-2008, 06:13 PM
Problem Solved

Fumigator
12-03-2008, 08:27 PM
Try using the function strip_tags().

http://us3.php.net/manual/en/function.strip-tags.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum