Hello all,
I want to filter the_content to allow like <p> tags only but with code below
add_filter('the_content','strip_tags');
it strip all tags so how to allow <p>?
thanks
Hello all,
I want to filter the_content to allow like <p> tags only but with code below
add_filter('the_content','strip_tags');
it strip all tags so how to allow <p>?
thanks
Something like this
function my_strip_tags($content='') {
return strip_tags($content, '<p>');
}
add_filter('the_content','my_strip_tags');
I didn't test the code - its to demonstrate the principle. That will leave P tags in place and strip all others.
thanks stvwlf its work
SUPER TRICK!
Does anybody know how to force to paste as plain text?
I know there's the 'T' button, but since some client doesn't want to learn how to... I need to force him!
This topic has been closed to new replies.