#remove wordpress shortcode from post_content if get the content directly from database
$content = preg_replace("[\[([^\[\]]*)\]]", '', $content);
#Remove htmltags from content
$content = strip_tags($content);
#remove wordpress shortcode from post_content if get the content directly from database
$content = preg_replace("[\[([^\[\]]*)\]]", '', $content);
#Remove htmltags from content
$content = strip_tags($content);