I’m trying to create a universal content block of type html which includes a simple template tag in it:
{% today \"%Y%m%d%H%M%S\" %}
However the api (I’m using the latest v2025-01-15) keeps giving me an invalid input error as follows:
{
id: "a4c5b106-608d-4c8c-ad3a-27efaa2efc15",
status: 400,
code: "invalid",
title: "Invalid input.",
detail: "Attribute not allowed: app.editors.email_html_sanitizer.attribute('__close_django_tag__', )",
source: {
pointer: "/data/attributes/definition/data/content",
},
links: {
},
meta: {
},
}
If I create the universal content block without this tag, it creates just fine and if I then afterwards go into the klaviyo ux and add the tag directly there, everything works fine and it runs properly and gives me the expected output:

It seems like the api’s sanitizer is simply preventing me from dropping this tag in there. Is there anyway around this or is there something I can do here? It is absolutely necessary for our specific application of universal content to be able to use template tags such as these to provide value to our clients.
Thanks,
Mark