diff --git a/templates/content/node--card-horizontal.html.twig b/templates/content/node--card-horizontal.html.twig index 77b5e4a..be985c0 100644 --- a/templates/content/node--card-horizontal.html.twig +++ b/templates/content/node--card-horizontal.html.twig @@ -67,7 +67,7 @@ #} {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--card-image.html.twig b/templates/content/node--card-image.html.twig index e3ca5c4..5cc6dce 100644 --- a/templates/content/node--card-image.html.twig +++ b/templates/content/node--card-image.html.twig @@ -67,7 +67,7 @@ #} {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--card-vertical.html.twig b/templates/content/node--card-vertical.html.twig index 48f4fa6..21a3c2f 100755 --- a/templates/content/node--card-vertical.html.twig +++ b/templates/content/node--card-vertical.html.twig @@ -67,7 +67,7 @@ #} {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-event--card-horizontal.html.twig b/templates/content/node--ubc-event--card-horizontal.html.twig index bfbf617..9b1f392 100755 --- a/templates/content/node--ubc-event--card-horizontal.html.twig +++ b/templates/content/node--ubc-event--card-horizontal.html.twig @@ -84,7 +84,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-event--card-image.html.twig b/templates/content/node--ubc-event--card-image.html.twig index 86c3770..436260b 100644 --- a/templates/content/node--ubc-event--card-image.html.twig +++ b/templates/content/node--ubc-event--card-image.html.twig @@ -85,7 +85,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-event--card-vertical.html.twig b/templates/content/node--ubc-event--card-vertical.html.twig index d1c5b35..bc9ac9c 100644 --- a/templates/content/node--ubc-event--card-vertical.html.twig +++ b/templates/content/node--ubc-event--card-vertical.html.twig @@ -85,7 +85,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-partner-organization--card-horizontal.html.twig b/templates/content/node--ubc-partner-organization--card-horizontal.html.twig index b64bfbb..2522f0f 100644 --- a/templates/content/node--ubc-partner-organization--card-horizontal.html.twig +++ b/templates/content/node--ubc-partner-organization--card-horizontal.html.twig @@ -67,7 +67,7 @@ #} {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-partner-organization--card-vertical.html.twig b/templates/content/node--ubc-partner-organization--card-vertical.html.twig index 2d787a2..13fe8fd 100644 --- a/templates/content/node--ubc-partner-organization--card-vertical.html.twig +++ b/templates/content/node--ubc-partner-organization--card-vertical.html.twig @@ -68,7 +68,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig b/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig index 4e16c3a..04935b3 100644 --- a/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig +++ b/templates/content/node--ubc-profile--card-horizontal-round-image.html.twig @@ -68,7 +68,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-profile--card-horizontal.html.twig b/templates/content/node--ubc-profile--card-horizontal.html.twig index 6f45dde..299f7aa 100644 --- a/templates/content/node--ubc-profile--card-horizontal.html.twig +++ b/templates/content/node--ubc-profile--card-horizontal.html.twig @@ -67,7 +67,7 @@ #} {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %} diff --git a/templates/content/node--ubc-profile--card-vertical.html.twig b/templates/content/node--ubc-profile--card-vertical.html.twig index 8b4e37f..3921384 100644 --- a/templates/content/node--ubc-profile--card-vertical.html.twig +++ b/templates/content/node--ubc-profile--card-vertical.html.twig @@ -68,7 +68,7 @@ {% if not (node.body.isEmpty == true) and content.body is defined %} {% if node.body.summary|length > 0 %} - {% set summary = node.body.summary %} + {% set summary = node.body.summary|striptags| check_markup('filtered_text') %} {% else %} {% set summaryraw = content.body.0['#text']|striptags %} {% set summary = summaryraw| truncate(300,true,true)| check_markup('filtered_text') %}