Title: Field values getting stripped
Last modified: March 7, 2024

---

# Field values getting stripped

 *  Resolved [najram](https://wordpress.org/support/users/najram/)
 * (@najram)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/field-values-getting-stripped/)
 * Hello,
 * I’m trying to set some custom attributes and html tags to a custom block from
   its text/textarea fields. I’m using the default template builder, not php templates.
   But, my custom values are getting stripped. Only id, class and style attributes
   are getting displayed. Same for html tags, only the standard ones (div, section
   etc.) are getting trough.
 * So, it seems that there is some field validation in place.
   Can this behaviour
   be disabled somehow, maybe with php filter/hook?
 * Thank you!
   Cheers
    -  This topic was modified 2 years, 1 month ago by [najram](https://wordpress.org/support/users/najram/).

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [najram](https://wordpress.org/support/users/najram/)
 * (@najram)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17489946)
 * UPDATE: if used with php template instead, it works as intended.
 * However, it would be quite handy through, if it would work also with default 
   template editor, within the` {{...}}` syntax. 🙂
 *  Plugin Contributor [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17681369)
 * Hi [@najram](https://wordpress.org/support/users/najram/),
 * Thanks for letting me know about that, you’re right that it’d be better if it’d
   work with the `{{...}}` syntax.
 *  Thread Starter [najram](https://wordpress.org/support/users/najram/)
 * (@najram)
 * [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17695858)
 * Hi [@ryankienstra](https://wordpress.org/support/users/ryankienstra/) and thank
   you for your reply.
 * Hopefully it will be implemented in the next update … right, right? 🙂
 *  Plugin Contributor [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17697145)
 * Hi [@najram](https://wordpress.org/support/users/najram/),
 * Sorry, we aren’t planning a change to this, though it definitely could be better.
 * There has to be some [escaping of the template](https://github.com/studiopress/genesis-custom-blocks/blob/936b6c75b16e686894920ddc8471ffd529c55f8b/php/Blocks/TemplateEditor.php#L44)
   for security reasons.
 * We could loosen the escaping to help you.
 * But to be honest, we’re not focusing on this plugin. So unfortunately, we won’t
   have the developer time for that.
 * Sorry to not help you, as you raise a good point.
    -  This reply was modified 2 years ago by [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/).
    -  This reply was modified 2 years ago by [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/).
 *  Thread Starter [najram](https://wordpress.org/support/users/najram/)
 * (@najram)
 * [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17698697)
 * No problem, and actually, you have helped me. 🙂
 * Thanks [@ryankienstra](https://wordpress.org/support/users/ryankienstra/)
 *  Plugin Contributor [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17699949)
 * Thanks so much! It’s a big compliment you’re using Genesis Custom Blocks.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Field values getting stripped’ is closed to new replies.

 * ![](https://ps.w.org/genesis-custom-blocks/assets/icon.svg?rev=2373248)
 * [Genesis Custom Blocks](https://wordpress.org/plugins/genesis-custom-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-custom-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-custom-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-custom-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-custom-blocks/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/field-values-getting-stripped/#post-17699949)
 * Status: resolved