Can Generated column contain HTML?

2 posts by 2 authors in: Forums > CMS Builder
Last Post: November 6   (RSS)

I am using a generated column to indicate on the editor list view whether or not specific fields have content without showing the content. The field name is 'has' and uses the MYSQL statement, which works exactly as I expect for each check on a separate line.

concat(if (length(content) > 1, "Content √", "Content X"), "\n",
if (length(meta_description) > 1, "meta √", "meta X"))

OUTPUT:

Content √
meta X

 I would like to add some colour coding. When I try this

concat(if (length(content) > 1, concat("<span class='text-success'>","Content √", "</span>"), "Content X"), "<br> \n",
if (length(meta_description) > 1, "meta √", "meta X"))

OUTPUT

<span class='text-success'>Content √</span>
meta X

Would it be possible to add an option to support HTML tags?

Jeff Shields