Skip to content

Commit 6a54aef

Browse files
TASK: Add headlines to unwanted tags
1 parent 4ffb62d commit 6a54aef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Classes/Service/ContentService.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ protected function stripUnwantedTags(string $content): string
168168
'/\<\\/a\\>/',
169169
'/\\<span[^\\>]+\\>/',
170170
'/\\<\\/span>]+\\>/',
171+
'/\\<h1[^\\>]+\\>/',
172+
'/\\<\\/h1>]+\\>/',
173+
'/\\<h2[^\\>]+\\>/',
174+
'/\\<\\/h2>]+\\>/',
175+
'/\\<h3[^\\>]+\\>/',
176+
'/\\<\\/h3>]+\\>/',
171177
'/\\<\\\\?(strong|b|blockquote)\\>/'
172178
],
173179
'',

0 commit comments

Comments
 (0)