Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Plaintext HTML from PHP/MYSQL

    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

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Can you show us examples of the text and how this text is being created?

  • #3
    New Coder
    Join Date
    Dec 2008
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Problem Solved
    Last edited by tsidell; 12-03-2008 at 07:25 PM.

  • #4
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Try using the function strip_tags().

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •