Missing attributes in the filter format

Created on 7 January 2024, about 1 year ago
Updated 22 January 2024, about 1 year ago

Problem/Motivation

After update from 2.0.0, content from "description" field in {{content}} is not displayed.

Steps to reproduce

Update from 2.0.0 to 2.1.4

Description

Sample of description field in database:

<a href="https://path-to-article">
<img src="https://path-to-image" ></a>
</br>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat

Twig template design

<article{{ attributes.addClass('myclass') }}>
  {{ title_prefix }}
  {% if title %}
    <h3 class="feed-item-title">
      <a href="{{ url }}" target="_blank">{{ title }}</a>
    </h3>
  {% endif %}
  {{ title_suffix }}
  {{ content }}
</article>

Html output

<div class="item-description">
<a>
<img>
</a><br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat
</div>

=> a & img tags are filtered

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡¬Singapore adominique

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024