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

Is there a ColdFusion version of PHP's htmlentities?

Participant ,
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

I need to provide a CMS area for some employees who will contribute to our site content. They will be writing in Spanish and as we know there are several special characters that will need to be converted into their html entities before inserted to the dB. I know that PHP's htmlentities takes care of that nicely but we are using ColdFusion. Is there an equivalent for ColdFusion?
TOPICS
Advanced techniques

Views

1.8K

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
Guest
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

There is a ColdFusion component called SmartType that may do what you want. Check out http://sebduggan.com/SmartType/

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
LEGEND ,
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

LATEST
> as we know there are several
> special characters that will need to be converted into their html entities
> before inserted to the dB.

Maybe in PHP, but not in CF. Just tell the browser to transmit UTF-8, and
your DB that it's being sent UTF-8; when you ultimately pull it back from
the DB and output it to the browser, do the reverse.

There's no need to horse around with HTML entities for this sort of thing.

--
Adam

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