You need to change the type from textarea
to textarea_raw_html
:
Under the section “Available type values” it says:
textarea_raw_html: Text area, its content will be coded into base64 (this allows you to store raw js or raw html code)
Although I’m not sure why they can base64 encode the output from this but not the textarea_html
box with its nice formatting – an annoying limitation.
UPDATE It looks like you have to jump through some hoops when you switch to the textarea_raw_html
param type.
To use the value you need to manually decode it with:
$atts['some_param'] = rawurldecode( base64_decode( $atts['some_param'] ) );
Related Posts:
- How to safely sanitize a textarea which takes full HTML input
- How do I sanitize a javascript text?
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- Do We Need to Validate, Sanitize, or Filter Simple Numerical Superglobals (Cookies and Post)?
- MITM risk of not sanitizing?
- Which escape function to use when escaping an email or plain text?
- CSS from textarea in options page to frontend what to do
- How to sanitize uploaded file filename from a plugin?
- Sanitize $_GET variable when comparing
- Can we validate data from jquery
- Escaping and sanitization
- Save selectlist value (taxonomy) in wp:wp_set_object_terms
- Auto post with filling templates from external data and update periodical
- How can I properly sanitize the update_option in WordPress?
- wordpress on localhost lamp doesn’t let me install plugins
- WP_User_Query and non-unique usermeta data
- Redirect to settings page after install
- Is there a hook attached to general settings save?
- Multiple plugins vs combined one
- WooCommerce – Load Templates From Plugin For All Template Files
- wp-cli silently fails with error code 255
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- How can I get an image from the uploads dir and enter it in the media library? [closed]
- Alter post slug by a filter that is fired just after a post is created
- Check javascript file Proper way in functions.php
- register child class in another plugin
- Restrict backend but allow to use post.php?action=delete&post=POSTID from front-end
- Detecting when a custom taxonomy has been changed and display alert?
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- Server-side subscribe by email?
- WooCommerce “Save Changes” button appears inside custom settings
- how to show database content in wordpress post
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- How to make my plugin GDPR compatible?
- WordPress sending emails continuously. How to stop it?
- Can I use a method from an existing plugin as an action hook?
- Detect when any plugin is activated or deactivated
- Is there a way to get dynamic data into a Slider Revolution slide from a PHP script?
- Is there a way to dynamically get URL as a path to plugin root, not a local path?
- WAMP to XAMPP WordPress transfer
- How can i list random post from multiple category?
- How to create TEMPORARY Download links in a wordpress POST?
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Does WordPress merges a plugin folder during update?
- I am not receiving className in a ServerSideRender component
- Automatic Updates Individual Plugins Not Working
- Problem with updating a plugin
- Send email when a portfolio project is updated
- WordPress as web application base
- Unable to add TAB character to post?
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- How do I add image to the title of post?
- How to insert multiple postmeta values with one query?
- Woocommerce showing images blurry in description page
- “Conflict” with jQuery (or its plugins)?
- Overwrite category head title
- Restrict content based on buy woocommerce product
- Can I use register_settings and unregister_setting once the settings page has loaded?
- posts from multiple post types in one slider
- How to customize this theme? [closed]
- plugin generated unexpected output during activation, but it is empty
- How Should Custom Functions Be Called For Single Posts?
- Social share buttons text shows up on post excerpts
- Ajax request sends url rather than data
- Importing csv file
- grab or load text on demand
- Edit post image attributes on fly?
- How to displaying Custom image, text and default image logo from Redux Framework option panel
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Grouping imported products and showing variations based on selected product
- WordPress fatal error from php protocol codes
- How to display the category name in the tab and post inside the tab in WordPress?
- Want to build parent-child relationships between custom post types created with CPT UI
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- Ultimate Members Default Post Layout problem
- best way to upload a large file to wordpress using wp all import
- Why do actions with class and public method don’t fire __construct()
- how to enable/activate a plugin per Cpanel
- Gutenberg Block: How to reload a ServerSideRender?
- How to define the slug for my custom plugin?
- Run a Change Role Cron Job on WordPress via cPanel
- How to display variables from plugin?
- How to make the first letter of a post title uppercase, in a plugin?
- Payment failed but order is placed on wp site
- Manual Backup – How to save to Firefox or Chrome (instead of IE which brings up popup I can’t get rid of)
- Widget outputs the value but doesn’t save anything inside the textarea
- Add dynamic color to each category item
- Code fails in plugin file but works in functions.php
- Display_rows() and column_cb() strange behaviour
- I need to insert a captcha for all comments in word press
- The plugin generated xxx characters of unexpected output during activation
- My wordpress site wont load, it gives header error warnings
- Displaying Random Image from ACF Options Page [closed]
- Shortcode returning specific content of a post
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress REST API Visual Composer Shortcodes
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- Why am I getting an error when requiring a file in my plugin?
- restore backup full content or just specific folders