2 Replies Latest reply: Jul 24, 2012 1:37 PM by straffenp RSS

    Replace with CSS?

    straffenp Community Member

      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!