CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom Field Question
Pages: [1]

Author Topic: Custom Field Question  (Read 856 times)

johng

  • Guest
Custom Field Question
February 08, 2010, 07:58:11 am
I was wondering how I would go about having a custom field that stored HTML data. I can't seem to figure out where the data is being "cleaned" before it is inserted into the db.

Ideally, I would like to give my users a custom field they can use a WYSIWYG editor on so they can add some formatting to a "description" of their services... ie paragraphs, lists, headings, etc. A big step in this direction would be figuring out where the tags are being stripped out. Thanks for any help you can offer.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom Field Question
February 08, 2010, 08:26:42 am

1. use a wysiwyg custom field. those are not escaped

2. all escaping takes place here: packages/HTML/QuickForm.php, function filterValue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

johng

  • Guest
Re: Custom Field Question
February 08, 2010, 08:50:55 am
Thanks! I was certainly making that harder then it had to be...  ;D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom Field Question

This forum was archived on 2017-11-26.