Skip to main content
Known Participant
July 24, 2012
Answered

Replace with CSS?

  • July 24, 2012
  • 1 reply
  • 838 views

Hi all,

I have some text with HTML markup saved in a DB that I'd like to output. The saved text includes some <p> tags, but when outputting, I'd like to apply a style, so I used #replaceNoCase(MessageBody,"<p>","<p class="Copy">","all")#, but I get an invalid CFML construct error. I'm sure it's because of the quotes around "Copy".  Is there a way around this?

Thanks a lot!

    This topic has been closed for replies.
    Correct answer Dan_Bracuk

    Use single quotes to quote double quotes.

    1 reply

    Dan_BracukCorrect answer
    Inspiring
    July 24, 2012

    Use single quotes to quote double quotes.

    straffenpAuthor
    Known Participant
    July 24, 2012

    Thanks, Dan.  I appreciate it very much!