Skip to content

Commit

Permalink
Merge pull request #1460 from CuBoulder/issue/1459
Browse files Browse the repository at this point in the history
Resolves special characters not rendering correctly in article title image captions
  • Loading branch information
jcsparks authored Nov 12, 2024
2 parents 5e54acd + d7d71c0 commit 1df7921
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/content/node--ucb-article.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@
{{ label }}
</h1>
{% endif %}
{% if content.field_article_header_image_text|render %}
<p class="ucb-article-supplemental-text">{{ content.field_article_header_image_text|render|striptags|trim }}</p>
{% if content.field_article_header_image_text %}
<p class="ucb-article-supplemental-text">
{{ content.field_article_header_image_text.0['#context'].value }}
</p>
{% endif %}
<div role="contentinfo" class="ucb-article-meta">
{% if showDate %}
Expand Down

0 comments on commit 1df7921

Please sign in to comment.