Skip to main content
Participant
May 19, 2008
Question

Replacing HTML characters

  • May 19, 2008
  • 2 replies
  • 246 views
I'll keep this short and simple. Here's what I'm trying to do:

<cfset qInfo.instructions=ReplaceNoCase(qInfo.instructions,">","&gt;","all">

qInfo.instructions is used to populate a HTML cfformitem, so I want to replace all the <,>,and &. The above line is the first of three replacenocase statements and is throwing an 'Invalid CFML construct' error. What do I need to do differently?
    This topic has been closed for replies.

    2 replies

    Inspiring
    May 19, 2008
    SiskulousAuthor
    Participant
    May 19, 2008
    DOH!, I just looked at it again and realized what the problem is. Yes, I feel stupid now. Thanks.