If you search WordPress core for <
or >
you will find the function _wp_specialchars
in /wp-includes/formatting.php
Then if you search for _wp_specialchars
you will see it is used in esc_js
(as well as esc_html
and esc_attr
) so do not use esc_js
, escaping is mostly for output anyway.
Further search results show that in /wp-includes/default-filters.php
that _wp_specialchars
is added to multiple filters with a priority of 30. So what you would need to do is find out which filter is being applied to your text area value before saving, so that then you can do this before saving:
remove_filter('NAME_OF_FILTER_HOOK', '_wp_specialchars', 30);
It is hard to be more specific than that without the actual code used, but this should give you enough clues to find what you need.
Related Posts:
- WordPress Visual Editor Stripping HTML Changes
- Add a class to links in the visual editor (how to get old dialog back)
- Syntax error, unexpected ‘class’ (T_CLASS) on line 1 after upgrade to php 5.6.4
- How to remove hardcoded characters from playlists?
- Gutenberg Blocks doesn’t render correctly when using do_blocks
- Calling a method from functions.php on a click of a button
- Get post meta in enqueued js file
- How to use WordPress (PHP) functions in AngularJS partials files?
- How to create a custom config file and get data using inline JS in a wordpress page
- Handling an Ajax form submit
- API JSON Data in WordPress
- Using an Image Slider twice on the same page
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Archive dropdown styling not applied
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- Get/Set wp.customize.previewer.previewUrl
- How to speed up admin-ajax.php in wordpress
- JQuery not working on WordPress Admin page [closed]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- How can I output a php value into a JS file within WordPress?
- Putting PHP variables into javascript [duplicate]
- How to test nonce with AJAX – Plugin development
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- Slider loading issue
- Ajax not working es expected (Returns 0)
- Creating a Multi-Level Associative Object Using AJAX
- remove wp floating submenu in wp dashboard
- search and replace preword from author
- How to complete two other input fields, completed the first
- Status 400 for AJAX POST Request with admin-ajax.php
- Need Help Fixing My Iframes [closed]
- wp_enqueue_scripts leads to error
- Passing UTM Parameters To Modify Page In WordPress
- Incorrect MIME type for assets with Valet
- Open post-content in archive page in a Modal box with bootstrap
- Creating own shortcode – echoeing php variable based on JS variable
- How to add a do_action on refreshing of WP customizer?
- PhantomJS with wordpress
- Add / Update Custom Fields After Select Pictures in Media Window
- Generate sidebar depending on height of post
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Error – ‘create_function is deprecated’ [closed]
- Tell WP register script to load a script only when the entire page is loaded
- How do I get an external php page to load using javascript
- trouble with page_id & highlighting current page
- wordpress admin plugin menu custom css
- trying to put an active hover to my custom nav category buttons [closed]
- How do I get my Javascript scripts working?
- Why i can’t get custom fields value or post ID via Ajax?
- How to reference PHP in Javascript
- get db values for external js file
- Calling PHP Titles inside Javascript Markup
- Accessing an API with jQuery and AJAX
- Ajaxurl suddenly not defined
- ‘Bones’ theme: Load stock scripts in footer instead of header?
- Replacing WordPress Icons (menu,icons32, etc)?
- go to home page when i select default in select-box
- How to redirect non logged in mobile users to page on same site?
- html form: redirect page after form completes submit function and posts data
- Creating a brand attribute as a variable
- Decode and Decrypt Azure B2C OpenID Authorization Token, Use Response in API Call (Example Token Within)
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Add other class content with reference class value
- Exclude ipads and tablets form wp_is_mobile code
- WordPress Slider is not working
- gettint error 400 with AJAX
- Javascript / PHP – closing the loop
- I can’t load my images from a js file using wp_localize_script
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Bring Font Awesome icons inside menu A tags
- Filtering markers on google map by WordPress category[SOLVED]
- Call jQuery function from PHP?
- custom post type column countdown
- How to call a function from functions.php with ajax?
- Pass product object to javscript
- Automatically refresh page if widget is added to page?
- number of posts with “Load More”
- Call custom JS function from PHP
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Complex PHP for json_encode > how to handle/output right?
- scroll scrpit to particular button position to next id when click button
- Slider from different widgets
- How to get values from wordpress listings and use them in javascript array?
- Why this plugin is not working?
- Trying to fix multiple category drop down
- Trying to customize wordpress drop down categories
- What’s the best way to format ACF number fields for display on the front end?
- Facebook share button only share the_permalink(), without thumbnail, tilte, excerpt, etc
- get_option(‘admin_email’) not working in wordpress when using ajax call
- how can I make content from a plugin hidden when user is logged in? [duplicate]
- Passing javascript variable to php file
- Javascript code not working – $ is not a function error
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- bloginfo url in javascript
- Fetching only specific value from php file