Changeset 12122 for branches/3.0/src/bp-core/bp-core-functions.php
- Timestamp:
- 05/25/2018 03:52:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/src/bp-core/bp-core-functions.php
r12067 r12122 3841 3841 ) ); 3842 3842 } 3843 3844 /** 3845 * Remove script and style tags from a string. 3846 * 3847 * @since 3.0.1 3848 * 3849 * @param string $string The string to strip tags from. 3850 * @return string The stripped tags string. 3851 */ 3852 function bp_strip_script_and_style_tags( $string ) { 3853 return preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string ); 3854 }
Note: See TracChangeset
for help on using the changeset viewer.