What is the best way to strip the_content of html tags and needless spaces on the front end? I'm building a special use theme that needs to allow users who can edit_post to make changes on the front end, but I only want this text area to support plain text.
My current code:
<?php if ( !current_user_can( 'edit_post', $post_ID ) ) : the_content('Read more on "'.the_title('', '', false).'" »'); else: ?> <textarea class="grid_22"> <?php the_content('Read more on "'.the_title('', '', false).'" »'); ?> </textarea> <?php endif ?>
How can I make it look like normal text? Users who edit copy on the front end will not use the backend WYSIWYG editor so I don't have to worry about formats being over written.