wp_strip_all_tags() will strip out all the tags.
However with posts which just have images and no content. There is no solution to that, the excerpt or wherever you are trying to use it will show blank since it cannot “magically” create content for the post when there is no content at all.
For more info > https://codex.wordpress.org/Function_Reference/wp_strip_all_tags
Related Posts:
- Why is WordPress WYSIWYMG and how do I make it WYSIWYG?
- Add visual editor capability to custom excerpt window?
- Can Rich Text features be configured per user?
- Creating table layout in WYSIWYG editor
- Add default text to multiple wysiwyg editors
- WYSIWYG eating up first p in td
- Making the Content Editor Box Bigger in 2013
- wysiwyg is scrambled
- How to paste into WordPress editor without changing existing formatting in editor?
- How to use numbered lists in the post editor?
- Problem with -> in pre tags
- WordPress page editor for clients, opinions needed
- Foliopress WYSIWYG editor does not display images [closed]
- WYSIWYG – Custom field inside link
- Change the Theme in Jupyter Notebook?
- Stop WordPress Wrapping Images In A “P” Tag
- Extra TinyMCE editor strips and tags?
- Disable Visual editor for all users
- Why is the visual editor in WordPress limiting the width by wrapping the content?
- Editor removes tags
- Adding a rich text editor to Excerpt
- Avoid converting “>” to >
- Disable WYSIWYG editor only when creating a page
- How to edit posts with the new wp_editor api?
- How can i add some static text above the editor?
- Add quicktag buttons to the HTML editor
- Force TinyMCE editor’s “Toolbar Toggle” to be automatically chosen & expanded
- Stop certain classes showing up in TinyMCE Advanced Style dropdown
- WordPress 4.6 link edit dialog is too rudimentary
- Disable the Code View in the content editor?
- Re Order Editor to be after meta box [duplicate]
- How can I stop TinyMCE from converting my HTML entities to characters?
- Drag-and-drop “Panels”-style visual layout editor?
- post editor changes & to &
- Disable escaping html
- Gutenberg block editor – list of form components for custom blocks
- Completely disable editor
- If two users attempt to modify a page, does WordPress still work correctly?
- Automatically added brs and paragraphs?
- What’s the Best Way to Edit WordPress Files?
- two tinyMCE editors in the same page
- Square brackets make WordPress ignore newline/paragraph
- Open posts in editor in the ‘Text’ mode by default
- Text cut off on save
- line break are not working when editing a post [closed]
- Making the Post/Page Content Editor Box Bigger?
- Showing only certain buttons on tinymice content editor
- Set default text for the editor in new posts
- How to apply editor filter to posts with a specific custom post type
- How to *disable* the post content editor
- Add option for editors through `register_setting`
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- Remove all table widths from editor content
- WordPress post editor crashes with Polyfill typo
- WYSIWYG editor in WP 3.2 plugin
- How do I fix my ‘Path’ field when editing pages via the Dashboard?
- Define multiple Gutenberg editor widths
- Add WYSIWYG to Image Description field
- in network setup super admin has the tinyMCE buttons and the regular admin has not
- edit posts through front-end
- How to get Text Selection in WordPress Editor
- Float images in content
- Good tutorial on how to make custom write panels in WordPress 3?
- Always paste as a text in visual editor
- Use MarkItUp as editor and not the default
- Restrict other Admins from using Editor in Admin Panel
- Editor doesn’t load properly on my self-hosted WordPress 3.3
- Is there a filter for editor-style.css file?
- How to add notice text above Post Editor?
- Cannot access WordPress Appearance → Editor
- Edit the archive-{custom_page}.php via WP editor
- How to disable YouTube (and any other oembed) embeding in the editor
- Prevent WordPress from messing my HTML
- Bulk edit contents of pages
- How to leave a line between paragraphs when writing text in the visual or text editor
- Customize Editor Styles
- problem adding code into wp editor for https://wordpress.org/support [closed]
- Adding content in Gutenberg editor
- How to display full width block without toolbar?
- WordPress editor converted/deleted HTML entities code
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- How can I register a custom “Text Pattern” (WP 4.3) for TinyMCE?
- How to dynamically generate wordpress editor on frontend?
- Open ‘View Page’ Button in Editor in new Tab
- Opening Brackets Do Not Format to Paragraphs in Visual Editor
- Can’t format content of Rich Text Editor in Template
- WordPress editor spacing very unreliable
- wp_editor responsive?
- WordPress editor removes all the linefeed characters with WP-Markdown and Syntax Highlighter evolved
- Custom wysiwyg editor doesn’t execute shortcodes?
- Why wordpress word count differs from Microsoft word and sites like wordcounter.net
- Is there a plugin that let you edit Posts and Comments in a front-end page?
- WP is not allowing me to post Macintosh .pages documents to my blog
- Intermittant problem saving posts
- wysiwyg editor don´t export paragraph
- Visual Editor: Paragraph styles appear to one admin but not to others
- The simplest way to let clients edit pages
- Page/post editor with syntax highlighting [closed]
- Editor is shown at full width
- How do you stop WP from stripping code? [closed]