bbp_encode_normal_callback( string $content = '', string $key = '', string $preg = '' )
Callback to replace normal HTML tags in a content string
Description Description
Parameters Parameters
- $content
-
(Optional)
Default value: ''
- $key
-
(Optional)
Default value: ''
- $preg
-
(Optional)
Default value: ''
Source Source
File: includes/common/formatting.php
function bbp_encode_normal_callback( &$content = '', $key = '', $preg = '') { if ( strpos( $content, '`' ) !== 0 ) { $content = preg_replace( "|<(/?{$preg})>|i", '<$1>', $content ); } }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |