HTML tags being stripped from the description box
-
When I create a snippet that might be a little complicated, I’d like to bold some text, use paragraph html tags and use lists.
The current state ofthe plugin will strip all html from the description metabox even though I use the tinymce wysiwyg and even if use the “text” section of the input metabox.
Could you please allow some tags to come through or perhaps add some filters so i can extend without having to edit your plugin files.
Currently, if I replace this (lines 1266 to 1270 in /plugins/post-snippets/src/PostSnippets/Edit.php):
//******************** Preparing Snippet Description ************************* */
$snippet_desc = sanitize_textarea_field( $_REQUEST[‘snippet_desc’] ?? ” );//****************************** END *********************************** */
with this:
//******************** Preparing Snippet Description ************************* */
$snippet_desc = wp_kses_post( $_REQUEST[‘snippet_desc’] ?? ” );//****************************** END *********************************** */
it will work.
Any ideas?
- You must be logged in to reply to this topic.