Allowing html markup in the user profile fields
Posted by cchubb on April 26, 2007 at 3:36pm
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);