@@ 1055-1064 (lines=10) @@ | ||
1052 | * @param $text |
|
1053 | * @return mixed |
|
1054 | */ |
|
1055 | public static function sanitizeAdsenses($text) |
|
1056 | { |
|
1057 | $patterns = []; |
|
1058 | $replacements = []; |
|
1059 | ||
1060 | $patterns[] = "/\[adsense](.*)\[\/adsense\]/sU"; |
|
1061 | $text = preg_replace_callback($patterns, 'Smartobject\Utility::sanitizeAdsenses_callback', $text); |
|
1062 | ||
1063 | return $text; |
|
1064 | } |
|
1065 | ||
1066 | /** |
|
1067 | * @param $matches |
|
@@ 1087-1096 (lines=10) @@ | ||
1084 | * @param $text |
|
1085 | * @return mixed |
|
1086 | */ |
|
1087 | public static function sanitizeCustomtags($text) |
|
1088 | { |
|
1089 | $patterns = []; |
|
1090 | $replacements = []; |
|
1091 | ||
1092 | $patterns[] = "/\[customtag](.*)\[\/customtag\]/sU"; |
|
1093 | $text = preg_replace_callback($patterns, 'Smartobject\Utility::sanitizeCustomtags_callback', $text); |
|
1094 | ||
1095 | return $text; |
|
1096 | } |
|
1097 | ||
1098 | /** |
|
1099 | * @param $module |