diff --git a/src/Pods/WP/Bindings.php b/src/Pods/WP/Bindings.php index 482d6191e3..e8aca97b0e 100644 --- a/src/Pods/WP/Bindings.php +++ b/src/Pods/WP/Bindings.php @@ -4,8 +4,6 @@ use Pods\Blocks\Types\Field; use WP_Block; -use Pods\Whatsit\Pod; -use PodsForm; /** * Bindings specific functionality. @@ -93,7 +91,14 @@ public function get_value( $source_args, $block_instance, $attribute_name ) { return ''; } - return $field_block->render( $source_args, '', $block_instance ); + $value = $field_block->render( $source_args, '', $block_instance ); + + // Only support full HTML for the content attribute. + if ( 'content' !== $attribute_name ) { + $value = wp_strip_all_tags( $value ); + } + + return $value; } }