{"id":50777,"date":"2026-01-29T18:00:24","date_gmt":"2026-01-29T18:00:24","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=tips-and-tricks&#038;p=50777"},"modified":"2026-02-11T13:16:17","modified_gmt":"2026-02-11T13:16:17","slug":"disabling-sanitization-for-jetengine-dynamic-fields","status":"publish","type":"tips-and-tricks","link":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/","title":{"rendered":"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor"},"content":{"rendered":"\n<p>By default, <em>JetEngine<\/em> uses wp_kses_post() to sanitize field output, which protects your site but often strips legitimate code such as SVG icons or REST API data. This custom PHP snippet allows you to bypass that filter for specific widgets, ensuring your raw HTML and complex scripts render exactly as intended without compromising site-wide security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"when-to-use-this-snippet\">When to Use This Snippet<\/h2>\n\n\n\n<p>Use this code bypass when you need to render content that the standard sanitizer removes:<\/p>\n\n\n\n<ul>\n<li><strong>Raw SVG Icons<\/strong>: Use it when storing &lt;svg&gt; code in meta fields to prevent paths or fill attributes from being stripped.<\/li>\n\n\n\n<li><strong>REST API Integration<\/strong>: Essential when pulling raw HTML or JSON data from external REST APIs via <em>JetEngine<\/em>, where the incoming data must remain unformatted to function. The usage example is described in the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/filtering-listing-based-on-rest-api-query-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Filter Listing Based on REST API Query Type<\/strong><\/a><strong> <\/strong>tutorial.<\/li>\n\n\n\n<li><strong>Complex Custom Scripts<\/strong>: If you are storing unique snippets or interactive elements that use non-standard HTML attributes, this filter bypasses the cleaning process entirely for that specific widget.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"disabling-sanitization-vs-wpkses\">Disabling Sanitization vs. WP_KSES<\/h2>\n\n\n\n<p>Crocoblock provides <a href=\"https:\/\/gist.github.com\/Crocoblock\/f8802e82a36689fdae6dcb104b28edff\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">two filters<\/a> that bypass standard security restrictions.<\/p>\n\n\n\n<p>In this tutorial, we describe the <strong>Disable Sanitization<\/strong> filter, which acts as a targeted bypass for specific widgets. By adding the \u2018disable-sanitize\u2019 CSS class to an Elementor widget, you completely disable sanitization for that field alone. This is the best solution for SVGs and REST API data because it prevents WordPress from stripping complex XML paths or unformatted data strings that are difficult to safelist individually.<\/p>\n\n\n\n<p>The <a href=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/cannot-display-iframe-with-dynamic-widgets\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Cannot Display Iframe with Dynamic Widgets<\/strong><\/a> article provides an example of the <strong>WP_KSES<\/strong> filter, which is a global allowlist that adjusts WordPress core security for all post content. Rather than disabling security, it grants explicit permission for specific tags\u2014like &lt;input> or &lt;iframe>\u2014to render across the entire site. This is the recommended method for fixing missing iframes or maps, as it allows you to enable required attributes (like src or type) while keeping the rest of your site&#8217;s security filters active.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-set-the-disable-sanitization-filter\">How to Set the Disable Sanitization Filter<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" id=\"add-the-filter-snippet\">Add the Filter Snippet<\/h3>\n\n\n\n<p>The filter can be added either via a custom code snippets plugin (like <em>Code Snippets<\/em>) or directly in your theme\u2019s <strong>functions.php<\/strong> file (preferably in a child theme to prevent changes from being overwritten on updates).<\/p>\n\n\n\n<p>For example, we install and activate the <em>Code Snippets<\/em> plugin, then proceed to the <strong><em>WordPress Dashboard &gt; All Snippets<\/em><\/strong> tab and click the \u201c<strong>Add New<\/strong>\u201d button.<\/p>\n\n\n\n<p>We type the filter name into the title bar (e.g., \u201cDisable sanitize output in Dynamic Field\u201d), keep the \u201cPHP\u201d selected, and enter such code into the textarea:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_filter( 'jet-engine\/listings\/dynamic-field\/sanitize-output', function( $result, $df ) {\r\n\r\n\tif ( false !== strpos( $df->get( '_css_classes' ), 'disable-sanitize' ) ) {\r\n\t\t$result = false;\r\n\t}\r\n\t\r\n\treturn $result;\r\n\t\r\n}, 0, 2 );<\/code><\/pre>\n\n\n\n<p>This code checks whether a <strong>Dynamic Field<\/strong> has a specific CSS class and, if so, stops sanitization.<\/p>\n\n\n\n<p>Finally, we click the \u201c<strong>Save and Activate<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field.webp\" alt=\"code to disable sanitize output in dynamic field\" class=\"wp-image-50788\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prepare-your-meta-field\">Prepare your Meta Field<\/h3>\n\n\n\n<p>Ensure your data is stored in a \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#textarea\" target=\"_blank\" rel=\"noreferrer noopener\">Textarea<\/a>\u201d meta field.<\/p>\n\n\n\n<p>For example, we add such an SVG icon to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>CPT<\/strong><\/a> post:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\">\r\n  &lt;path d=\"M12 21s-8-4.6-8-11a5 5 0 0 1 10 0 5 5 0 0 1 10 0c0 6.4-8 11-8 11z\"\/>\r\n&lt;\/svg>\r<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post.webp\" alt=\"svg icon in the textarea of the custom post\" class=\"wp-image-50787\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/svg-icon-in-the-textarea-of-the-custom-post-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-the-widget\">Configure the Widget<\/h3>\n\n\n\n<p>Drag a <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field<\/strong><\/a> widget into your <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/listing-template-in-elementor-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Listing<\/strong><\/a> or <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetthemecore\/how-to-add-a-single-post-page-template-with-elementor\/\" target=\"_blank\" rel=\"noreferrer noopener\">Single Page<\/a> template.<\/p>\n\n\n\n<p>Select \u201cMeta Data\u201d as the <strong>Source<\/strong> and pick the <strong>Meta Field<\/strong> that stores the data (SVG icon in our case).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1823\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source.webp\" alt=\"meta field with svg as a dynamic field source\" class=\"wp-image-50790\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source.webp 1823w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source-1536x927.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/meta-field-with-svg-as-a-dynamic-field-source-600x362.webp 600w\" sizes=\"(max-width: 1823px) 100vw, 1823px\" \/><\/a><\/div>\n\n\n\n<p>Then, go to the <strong>Advanced<\/strong><strong><em> <\/em><\/strong>widget\u2019s tab and add &#8220;disable-sanitize&#8221; in the <strong>CSS Classes<\/strong> field.<\/p>\n\n\n\n<p>After that, the icon should be displayed.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Use this class only for fields where you trust the input source (e.g., content added by site admins). Never disable sanitization for fields where site visitors or untrusted users can submit content.<\/p><\/div><\/div>\n\n\n\n<p>Save the settings by pressing the \u201c<strong>Publish<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget.webp\" alt=\"disable-sanitaze css class for the dynamic field widget\" class=\"wp-image-50789\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/disable-sanitaze-css-class-for-the-dynamic-field-widget-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to use a custom WordPress PHP filter to allow raw HTML, SVGs, or scripts to render within a <em>JetEngine<\/em> <strong>Dynamic Field<\/strong> by using a specific CSS class.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial explains how to use a custom WordPress PHP filter to allow raw HTML, SVGs, or scripts to render within a JetEngine Dynamic Field by using a specific CSS class.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","tipstricks-tags":[359],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-11T13:16:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field.webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/\",\"name\":\"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2026-01-29T18:00:24+00:00\",\"dateModified\":\"2026-02-11T13:16:17+00:00\",\"description\":\"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips & tricks\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock","description":"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/","og_locale":"en_US","og_type":"article","og_title":"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock","og_description":"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/","og_site_name":"Help Center","article_modified_time":"2026-02-11T13:16:17+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2026\/01\/code-to-disable-sanitize-output-in-dynamic-field.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/","url":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/","name":"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2026-01-29T18:00:24+00:00","dateModified":"2026-02-11T13:16:17+00:00","description":"Learn how to disable sanitization for JetEngine Dynamic Fields in WordPress and Elementor. This tutorial shows how to use a custom PHP filter and the disable-sanitize CSS class to safely render raw HTML and complex SVGs.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/disabling-sanitization-for-jetengine-dynamic-fields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Tips & tricks","item":"https:\/\/crocoblock.com\/knowledge-base\/tips-and-tricks\/"},{"@type":"ListItem","position":3,"name":"Disabling Sanitization for Specific JetEngine Dynamic Fields in Elementor"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks\/50777"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tips-and-tricks"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/tips-and-tricks"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=50777"}],"wp:term":[{"taxonomy":"tipstricks-tags","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/tipstricks-tags?post=50777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}