views profiles filters raw

Events happening in the community are now at Drupal community events on www.drupal.org.
cchubb's picture

Allowing html markup in the user profile fields

I have been trying to figure out how to allow html markup in the users profile fields. Many of my users have a "bio" field that contains biographical citations, which should be formatted in italics. They were escaped on output so the html tags were showing.

If you want to allow your profile fields to display the html instead, modify views_profile.inc to:

/**
* Default display method for a profile field
*/
function views_handler_field_profile_default($fieldinfo, $fielddata, $value, $data) {
$value = (unserialize($value) === false) ? $value : unserialize($value);

Read more
Subscribe with RSS Syndicate content