bbp_encode_normal_callback( type $content = '', type $key = '', type $preg = '' )

Callback to replace normal HTML tags in a content string

Description

Parameters

$content

(type) (Optional)

Default value: ''

$key

(type) (Optional)

Default value: ''

$preg

(type) (Optional)

Default value: ''

Source

File: bp-forums/common/formatting.php

function bbp_encode_normal_callback( &$content = '', $key = '', $preg = '') {
	if ( strpos( $content, '`' ) !== 0 ) {
		$content = preg_replace( "|&lt;(/?{$preg})&gt;|i", '<$1>', $content );
	}
}

Changelog

Changelog
Version Description
bbPress (r4641) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.