Skip to content

Commit

Permalink
SG-2119 - strip tags on resource tile descriptions (#1655)
Browse files Browse the repository at this point in the history
* SG-2119 - strip tags on resource tile descriptions

* remove unnecessary striptags
  • Loading branch information
aekong authored Mar 15, 2024
1 parent 30de6d0 commit c6a84b5
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
not paragraph.isPublished() ? 'paragraph--unpublished'
] %}

{% set text = {
'#type': 'processed_text',
'#text': description.0.value,
'#format': description.0.format,
} %}

{% block paragraph %}
{% block content %}
{% if title is not empty and text is not empty %}
<div class="sfgov-container-item">
<a class="sfgov-resource-card" href="{{ url }}">
<div class="title">{{ title }}</div>
<div class="description">{{ description.0.value }}</div>
<div class="description">{{ text|render|striptags }}</div>
</a>
</div>
{% endif %}
Expand Down

1 comment on commit c6a84b5

@aekong
Copy link
Collaborator Author

@aekong aekong commented on c6a84b5 Mar 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visit Site

Created multidev environment ci-19897 for sfgov.

Please sign in to comment.