Commit 35a3d557 authored by Yves Hessels's avatar Yves Hessels Committed by Sascha Grossenbacher
Browse files

Issue #3160709 by pivica, falc0: Paragraphs summary contains HTML entities

parent eeae2003
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -741,7 +741,7 @@ class Paragraph extends ContentEntityBase implements ParagraphInterface {
      }

      $text = $this->get($field_name)->value ?? '';
      $summary = Unicode::truncate(trim(strip_tags($text)), 150);
      $summary = Unicode::truncate(trim(html_entity_decode(strip_tags($text))), 150);
      if (empty($summary)) {
        // Autoescape is applied to the summary when it is rendered with twig,
        // make it a Markup object so HTML tags are displayed correctly.