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?
Thanks!
Use strip_tag(string) function to remove all html tags from string