diff options
author | sgiehl <stefan@piwik.org> | 2015-12-25 23:25:54 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-12-25 23:25:54 +0300 |
commit | 4b8ee0ef51d115dfa4d5520ccab0c29010db6f71 (patch) | |
tree | eb06578fa5b34af9e25e61ce1762fa3ac2d486d1 /plugins/CoreVisualizations/templates | |
parent | e6027273700f271199918d67d670403c17dbec30 (diff) |
fixes escaping in tag clouds
Diffstat (limited to 'plugins/CoreVisualizations/templates')
-rw-r--r-- | plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig b/plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig index d7f328b923..d1085287f4 100644 --- a/plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig +++ b/plugins/CoreVisualizations/templates/_dataTableViz_tagCloud.twig @@ -1,7 +1,7 @@ {% set cloudColumn = properties.columns_to_display[1] %} <div class="tagCloud"> {% for word,value in cloudValues %} - <span title="{{ value.word }} ({{ value.value }} {{ properties.translations[cloudColumn]|default(cloudColumn) }})" class="word size{{ value.size }} + <span title="{{ value.word|rawSafeDecoded }} ({{ value.value }} {{ properties.translations[cloudColumn]|default(cloudColumn) }})" class="word size{{ value.size }} {# we strike tags with 0 hits #} {% if value.value == 0 %}valueIsZero{% endif %}"> {% if labelMetadata[value.word].url is not sameas(false) %} @@ -10,7 +10,7 @@ {% if labelMetadata[value.word].logo is not sameas(false) %} <img src="{{ labelMetadata[value.word].logo }}" width="{{ value.logoWidth }}" /> {% else %} - {{ value.wordTruncated }} + {{ value.wordTruncated|rawSafeDecoded }} {% endif %} {% if labelMetadata[value.word].url is not sameas(false) %}</a>{% endif %} </span> |