• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replace with CSS?

New Here ,
Jul 24, 2012 Jul 24, 2012

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!

Views

731

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 24, 2012 Jul 24, 2012

Use single quotes to quote double quotes.

Votes

Translate

Translate
LEGEND ,
Jul 24, 2012 Jul 24, 2012

Copy link to clipboard

Copied

Use single quotes to quote double quotes.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2012 Jul 24, 2012

Copy link to clipboard

Copied

LATEST

Thanks, Dan.  I appreciate it very much!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation