How can i display the content in plaintext

Use wp_strip_all_tags() to remove the content of script and style elements too:

echo wp_strip_all_tags( get_the_content() );

Leave a Comment