Commit 7900fbe4 authored by pifagor87's avatar pifagor87 Committed by Renato Goncalves H
Browse files

Issue #2653852 by sassafrass, pifagor, NWOM, RenatoG: Token displayed when field is empty

parent d2de7f10
......@@ -704,7 +704,7 @@ function _link_sanitize(&$item, $delta, &$field, $instance, &$entity) {
else {
$entity_loaded = $entity;
}
$item['attributes']['title'] = token_replace($item['attributes']['title'], array($entity_token_type => $entity_loaded));
$item['attributes']['title'] = token_replace($item['attributes']['title'], array($entity_token_type => $entity_loaded), array('clear' => TRUE));
}
$item['attributes']['title'] = filter_xss($item['attributes']['title'], array(
'b',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment