Remove HTML code from content printed by wordpress

I am printing out the content of a specific post (103 in this case) with the following code:

<?php $post_id = 103; $queried_post = get_post($post_id); echo apply_filters('the_content',$queried_post->post_content); ?>

How can I make it exclude all the html tags like <p> and <br>s, and just show the text?

Read More

Thanks!

Related posts

Leave a Reply

1 comment