Solved

Filtering out HTML tags before emailing...

Posted on 2004-10-27
145 Views
Last Modified: 2013-12-24
I have an email page that let's the user type into an HTML editor box instead of the regular textarea and it will write the underlying HTML and save it to a database.  The problem is that some people don't accept HTML emails and when the email is sent to them all the HTML tags show up along with the text.  Is there a good way to trim out all the HTML before I send the email?  I tried to use the  Replace() function but couldn't get it to work correctly.  Thanks for any help!
0
Question by:Ike23
    2 Comments
     
    LVL 22

    Accepted Solution

    by:
    Hi Ike23,
    <CFSET mystring = REReplaceNoCase(mystring,"(<[^>]*>)","","ALL")>

    Regards,
    ---Pinal
    0
     
    LVL 22

    Expert Comment

    by:pinaldave
    Hi Ike23,
    Glad to help you.

    Regards,
    ---Pinal
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
    This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…
    This video discusses moving either the default database or any database to a new volume.

    913 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now