Skip to content

Commit cbdad3d

Browse files
authored
Merge pull request #8 from php-etl/feature/strip-html-function
Added a new function that removes HTML tags from a string
2 parents ac49e5b + d259e53 commit cbdad3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ 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', 'stripHtml'),
25+
ExpressionFunction::fromPhp('json_decode', 'decode'),
2426
new FileName('fileName'),
2527
new DateTime('dateTime'),
2628
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)