In short: it is in dependence of your context, the data inside your editor.
wp_kses() is really helpful, and you can define your custom allowed HTML tags.
Alternative, you can use the default functions, like wp_kses_post or wp_kses_data.
These functions are helpful in ensuring that HTML received from the user only contains white-listed elements. See https://codex.wordpress.org/Data_Validation#HTML.2FXML_Fragments
WordPress defines much more functions to sanitize the input, see https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data and https://codex.wordpress.org/Data_Validation
These pages are really helpful.
However, in your context should the wp_kses_post function, the right choice.
Related Posts:
- wp_editor textarea value not updating
- Show Font Awesome Icons In WP Post Editor
- ‘Add Media’ button doesn’t work when editor is initialized from javascript
- Why are there two diffrent full screen editors?
- How to set WYSIWYG editor width within wp_editor() function?
- Shortcode attribute escaping
- wp_editor not adding paragraphs despite wpautop being set to true
- WP Editor strips input placeholder attribute
- How to remove the “Path” line in the WordPress Editor for end users who are submitting a form?
- Remove specific buttons from wp_editor()
- WP Editor does not Initialize Correctly When Form Elements are Removed from the DOM
- Auto-resize when writing with Custom post WP editor
- Changing the default WP editor font and size
- WP_Editor – Setting render location on page
- How to pass the wp_editor content using jquery
- How to save html and text in the database?
- How do I prevent the wp_editor from loading outside container?
- Gutenberg – Custom blocks not working as expected?
- Quotes being escaped inside wp_editor when saved with wp_kses_post
- Save wp_editor() content as option
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- Change the name of the wp_editor tab “html/text”
- Updating post content on the front end
- Target wp_editor buttons to add a tooltip
- Using default wordcount javascript in WordPress on custom wp_editor() areas
- wpautop is not working when displaying content saved using wp_editor in a custom meta box
- Removing line breaks when in text view with wp_editor
- How to add custom button in wp_editor
- Edit Page blank
- how to set max-length at the wp_editor
- Like to convert textarea into using wp_editor
- Add default page editor to an admin settings page
- Can I use wp_editor() to create a second instance of the editor in my post page?
- How would I load wp_editor someehere else other than the admin area?
- wp.editor.initialize not working as expected
- wp_editor in text mode only(without TinyMCE)
- wp-editor is empty on first submit
- How WordPress remembers which active editing modes are used?
- how to display wp_editor in a page
- wp editor formatting
- wp_editor visual tab in meta box doesn’t show content
- wp_editor doesn’t save styling
- How to use wordpress text editor in php page
- Pull Youtube Link from 2nd WP_Editor
- textarea_name is not working with wp_editor
- How Can i print the wp_editor field content?
- How to add set featured image button in wp_editor()?
- WP_editor problem
- Displaying content on the website frontend that was uploaded using wp_editor?
- Free Alternate WordPress Editor (without requiring plugins)
- Strange formatting issue in text editor after WP update from 4.9.3 to 5.3.1
- Bold button gets unchecked on enter click when bullet button is also selected in WP Editor
- How can I apply preventDefault() to the click on CodeMirror-hints?
- WordPress editor issues
- automatically apply clear formating when pasting text on editor
- WordPress textual editor problem with new line
- Use ENTER, not SHIFT+ENTER to Insert Line Break in WP editor
- How to replace textarea in plugin with wp_editor
- Is there a way to install a drop-down with all site pages in WP-Editor?
- wp_editor returning invalid html
- Adding text above the editor
- Embed and word Count not working for wp_editor instance
- How to make this clean?
- wp_editor saving to database, but not displaying content on refresh
- How to stop wp-editor() overwriting my HTML?
- Save values from foreach loop in wp_editor
- ThinkTanking for design [closed]
- Wp_editor bug with foreach()?
- Convert textarea into TinyMCE
- load wp_editor without wp_footer
- How can I open WP rich editor within colorbox in the front end?
- front post submit using wp_editor
- Why am I not able to save / update data in wp_editor?
- Replacing a textarea in post meta with wp_editor() WordPress
- Are un-sanitized theme options more vulnerable to malicious scripts than the theme editor?
- disable tags on wordpress text editor
- What’s the proper way to sanitize checkbox value sent to the database
- Can A Post Meta Field Store multiple values that are not in an array?
- esc_attr on get_post_meta [closed]
- Using esc_url_raw with protocols properly
- Get admin area editor in frontend
- how to save wp_editor html content in options table
- Stop editor from adding “amp;” after every “&”
- Save editor’s value in user meta and retrieve it
- WP_Editor not saving data in user_meta
- Set Link Target Checkbox chcked on Edit Image MOdal Window in Admin Post Edit Screen?
- How to handle complex data with Settings API
- Sanitizing URL in a WordPress plugin
- Adding link options in insert/edit link dialog window
- Include Recent Post in Category
- My edits are not saved
- How to use wp_filter_oembed_result?
- wp_editor embed shortcode not working within my plugin
- Adding a class to custom TinyMCE button using WPLinks dialog box
- Form Sanitization and Validation
- wp_editor some functionality not working on custom theme
- Sanitize html, where to sanitize
- Post text sanitization after publishing/editing – changes are not saved
- oneOf two possible objects in WP REST API?
- How to jquery validate wp_editor?