Copy link to clipboard
Copied
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!
Use single quotes to quote double quotes.
Copy link to clipboard
Copied
Use single quotes to quote double quotes.
Copy link to clipboard
Copied
Thanks, Dan. I appreciate it very much!