Views Handler is the proper way out. There is also a quick way . Use Views php. Views php will allow you to reformat some fields in a view. You can use this to string replace the token values with the token’s values.
You need to add a field in the view of Type Global PHP. Name the field title as taxonomy term field. Then you do the required php operations for replacement.
But this as I said this is only a quick but not advisable solution. You should use views handler for this.
You can write a module to add your custom views handler using hook_views_data().
function mymodule_views_data() {
$data = array(
....
...
'handler' => 'my_custom_views_handler_test',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
),
),
);
return $data;
}
And then you should declare the views handler extending hiews_handler_field
You then the replacement code within an override of the render function.
class my_custom_views_handler_test extends views_handler_field {
function render($values) {
$value = $this->get_value($values);
// REPLACE THE TOKEN
return $this->sanitize_value($value);
}
}
We can also use hook_views_pre_render to override the field's value.