From 7d2b5c9c8fde621e011c6af7cc65e7b6ff6ed59d Mon Sep 17 00:00:00 2001 From: "uttkarsh@axelerant.com" Date: Tue, 9 Jul 2019 15:41:58 +0530 Subject: [PATCH] Html title field changes --- src/Series/Base.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Series/Base.php b/src/Series/Base.php index 18ca647..ef7f21d 100644 --- a/src/Series/Base.php +++ b/src/Series/Base.php @@ -76,10 +76,12 @@ public function __construct(ImmutableConfig $settings, EntityTypeManagerInterfac * {@inheritdoc} */ public function getDefault() : array { + // Get html title field and strip html tags. + $title = strip_tags($this->entity->html_title->value); return [ [ 'attribute' => 'Title', - 'value' => $this->entity->label(), + 'value' => $title, ], [ 'attribute' => 'Number',