Skip to content

Commit 372955e

Browse files
committed
Added a new function that removes HTML tags from a string
1 parent ac49e5b commit 372955e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public function getFunctions(): array
2121
ExpressionFunction::fromPhp('number_format', 'formatNumber'),
2222
ExpressionFunction::fromPhp('strpos', 'indexOf'),
2323
ExpressionFunction::fromPhp('str_replace', 'replace'),
24+
ExpressionFunction::fromPhp('strip_tags', 'clean_up_html'),
2425
new FileName('fileName'),
2526
new DateTime('dateTime'),
2627
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)