Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Strip all html tags forms

@robin-w

Moderator

Put this in your child theme’s function file –

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

or use

Code Snippets

add_filter( 'bbp_new_topic_pre_content', 'rew_strip_tags' );
add_filter('bbp_edit_topic_pre_content', 'rew_strip_tags' );
add_filter( 'bbp_new_reply_pre_content', 'rew_strip_tags' );
add_filter('bbp_edit_reply_pre_content', 'rew_strip_tags' );

function rew_strip_tags ($content) {
	$content = strip_tags($content);
return $content ;	
}
Skip to toolbar