This is a simple but effective way of getting rid of HTML tags and make the HTML string into plain text to output:

#REReplace(htmlStr,”<[^>]*>”,””,”All”)#

Example HTML: <h1>Title</h1><p>My content<p>
Example Output after: Title My content

Join the conversation! 2 Comments

  1. Hi ! This keeps up Coldfusion as developer friendly language. Thanks For Sharing.

    Reply
  2. Thanks, great tip! 🙂

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

About Host Media

We have been hosting websites since 2002 and are always moving forward. All articles written under the Host Media author are created by the team who support our customers.

Category

ColdFusion/Railo & MySQL

Tags

,