Revision 55083981
Added by Andreas Kohlbecker over 4 years ago
modules/cdm_dataportal/cdm_api/cdm_api.module | ||
---|---|---|
214 | 214 |
$i = 0; |
215 | 215 |
foreach ($taggedtxt as $tt) { |
216 | 216 |
if (!in_array($tt->type, $skiptags) && strlen($tt->text) > 0) { |
217 |
$class_attr = $tt->type; |
|
218 |
if(isset($tt->entityReference)){ |
|
219 |
$class_attr .= " " . html_class_attribute_ref($tt->entityReference); |
|
220 |
} |
|
217 | 221 |
$out .= (strlen($out) > 0 && ++$i < count($taggedtxt) ? $glue : '') |
218 |
. '<' . $tag . ' class="' . $tt->type . '">'
|
|
222 |
. '<' . $tag . ' class="' . $class_attr . '">'
|
|
219 | 223 |
. t('@text', array('@text' => $tt->text)) |
220 | 224 |
. '</' . $tag . '>'; |
221 | 225 |
} |
Also available in: Unified diff
fix #7552 rendering TaggedText.entityReference information as class attribute