How do I use inline CSS in "Global: Custom text"? My scenario:


a field (color_field) to enter a color code (ie: #fafafa)
in Global: Custom text in Views use the token of color_field to generate a border color (is: style="border-color: [color_field]")


Then, I must display for each row a different border-color and the color code is generated with a color picker in color_field when add a new node.

Unfortunately the inline CSS is stripped from Global: Custom text in Views.

How I can use inline css in Global: Custom text in Views?

Or have I to change approach to my scenario?
I've solved overriding view-view-field--field-myfield.tpl.php and in template file I've used color from $row variable.

&lt;?php 
$title = $row-&gt;field_field_myfield[0]['rendered']['#markup'];
$color = $row-&gt;field_field_myfield_color[0]['rendered']['#markup'];
?&gt;
&lt;h3 style="border-color: &lt;?php print $color ?&gt;"&gt;&lt;?php print $title ?&gt;&lt;/h3&gt;