Skip to content

Commit 945456a

Browse files
author
Stanislav
committed
fixed stripping html tags
1 parent e18e4e5 commit 945456a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

os2web_cp_service.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ function _os2web_cp_service_update_case_metadata($file_id, $case_nid, $path_to_p
11321132
// Removing unneeded paragraphs.
11331133
$text = str_replace('<p>&nbsp;</p>', ' ', $text);
11341134
// Removing script tags.
1135-
$text = preg_replace('#<script(.*?)>(.*?)</style>#is', ' ', $text);
1135+
$text = preg_replace('#<script(.*?)>(.*?)</script>#is', ' ', $text);
11361136
$text = str_replace("\r\n", " ", strip_tags($text));
11371137
$text = str_replace("\n\r", " ", $text);
11381138
$text = str_replace("\n", " ", $text);

0 commit comments

Comments
 (0)