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 Drupal Modules (Moderator: Donald Lobo) »
  • D7 Views3 and civiCRM Custom Data showing HTML
Pages: [1]

Author Topic: D7 Views3 and civiCRM Custom Data showing HTML  (Read 1237 times)

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
D7 Views3 and civiCRM Custom Data showing HTML
November 29, 2011, 08:43:27 pm
I'm creating a view to display certain contacts in a particular group. I have the view working except for one item. I have a custom data field of type Note>RichTextArea in which users type an "About Me" info. When this field is displayed in the view it the text plus the HTML code.

to see the view go to http://sainfrancisocc.org/staff/directory

I've tried using the option to strip HTML from the field but it doesn't do anything. I've checked the field in civiCRM to make sure there's not some corrupt data that's causing it.

Any ideas?

FrTommy

  • I post frequently
  • ***
  • Posts: 273
  • Karma: 2
  • CiviCRM version: 4.5.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: D7 Views3 and civiCRM Custom Data showing HTML
November 29, 2011, 09:54:45 pm
I've temporarily reverted the field to just a standard textarea instead of the RichTextArea.

But i'd really like the contacts to be able to edit their "About Me" in a RichTextArea.


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: D7 Views3 and civiCRM Custom Data showing HTML
November 30, 2011, 07:16:29 am
Not sure how to fix this "properly" but you could customize the View template for this field and run the output through strip_tags http://php.net/manual/en/function.strip-tags.php and that would be a fairly simple solution.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • D7 Views3 and civiCRM Custom Data showing HTML

This forum was archived on 2017-11-26.