How can i display the content in plaintext

i want to display my excerpt in plaintext. How can i do this?

This is my Snippet where i display the content:

Read More
<?php the_content(__( 'Weiterlesen &rsaquo;','okay')); ?>

How i change the snippet to display the content in plain?

greets,
niklas

Related posts

1 comment

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

    echo wp_strip_all_tags( get_the_content() );
    

Comments are closed.