Use a PHP function to do this: https://php.net/strip_tags
example:
echo strip_tags("<div>my text</div>");
Related Posts:
- Plugin Form Submission Best Practice
- $_POST form request with admin-post
- Handling results from data hooked into admin_post
- What is the real intention for admin-post.php?
- What is the recommended way to create plugin administration forms?
- Using AJAX in a plugin to submit form – REALLY confused
- Post from front-end with post types, categories and taxonomies
- Front-End Form Submission in Shortcode
- Check spam in custom form – akismet
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- Front-End Interfaces Without Shortcodes
- Best Practices for Creating and Handling Forms with Plugins?
- Plugin options page – form with two different submit buttons
- How to sanitize user input?
- How to trigger $_GET request within admin plugin page?
- WooCommerce registration password field not displaying
- wordpress plugin php file processing form
- How to add custom fields to the all users page
- Widget is to be compatible with all themes
- Error on inserting a form value to database
- Multiple options pages validation for a plugin
- Form doesnt save to database
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- Create custom HTML/JS app inside page
- Plugin Development for registered users
- Is there documentation reference for forms in menu and setting pages?
- Input in plugin widget does not allow spaces
- How to remove default style of header in wordpress metabox
- Avoid updating post when sending POST or GET request to post.php
- CSS not affecting widget output
- admin_post equivalent for guest user?
- How can I add a simple custom field to my plugin?
- Run JavaScript validation script on form submit in plugin
- I am unable to save my data from a form
- The Correct Way to Use Nonce Field without Settings API
- How to add search form in main page body?
- How to change WooCommerce loop product title HTML output in single product page and archive page
- How to make and save custom form in custom plugin page?
- Catching Form Submission in WordPress Admin Panel
- Form using admin-post.php gives 404 after submission
- Best practice for Designing a Plugin with this scenario
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Submit form to a different PHP file in the same plugin folder
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Form submission to another page returning 404 error [duplicate]
- Lead form that submits to 2 external APIs
- Font size of HTML content
- WordPress: redirecting to the form page after form submission to admin-post.php
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- How to create a custom post-new.php page for plugin , no wp menu
- Information and Page from WordPress Plugin
- I’m including a html file in my plugin, but it can’t find its css or js files
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- Use admin-post to submit form data to external database
- How to Maintain url on form submit
- How to retrieve custom profile fields associated with different users
- form does not generate $_POST request
- Implementing Select2 plugin into WordPress
- How can I add the Post ID to Class Name in Jquery?
- Acessing WP functions in form submission handler
- Form and database, plugin development
- Can I use a hook other than ‘init’ to handle form submissions?
- How to get html tag ids from template?
- wp_mail links are dead
- Best way to handle a form post in plugin
- Tracing dashboard publish settings from input form in WordPress
- Post data in wp-admin to external database
- Multi-part form and wp_redirect()
- Page reload occurs before request finishes
- Submitting a plugin form to database in admin page
- Which subset of html does WordPress support?
- How to create A – Z List with pictures?
- Hook a search form anywhere on the site, using a custom plugin
- Plugin forms overwrite each other’s options
- how to set context in WordPress for unit testing
- How to add an attribute to the body tag with a plugin?
- Support auto-save and revisions for custom fields
- Gutenberg – What is the best way to save/update post meta?
- Dequeue theme stylesheets but keep widget styling on custom page template
- WordPress after content Hook & external template part
- Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
- Show/Hide ‘add new user’ custom fields in wordpress admin panel by click another field
- Capture mediaelement events
- get_the_tags with separator control?
- Print Dashboard submenu name and filename
- Are there any security risks when submitting data-attribute data through AJAX?
- My stylesheets are not enqueuing
- Hook after attachment added and cropped
- Why would you use esc_attr() on internal functions?
- How to get post image root URL?
- Custom Plugin Options Won’t Update
- Auto-complete or auto-suggest from stored data in database
- Cannot output plugin twice with shortcode
- Does $this context change in an AJAX callback?
- User Registration Moderate
- How to do searching based on keywords added in page
- How to only Load scripts on variable products page