render html markup of words inside text

I am trying to apply html markup to individual words in a sentence.  The behavior I want works on individual results; i.e., I can iterate through a list of words and display the html markup.

    html:
    {% assign w = entity_list | split: "|RECORD|" %}
    {% assign entitylistsize = w.size | minus: 1 %}

    {% for item in (0..entitylistsize) %}
        <mark style="color: white; background-color: #4285F4">{{w[item]}}</mark>
    {% endfor %};;

But it does not work when <mark></mark> is embedded in text, which would happen by means of a search and replace process on particular keywords.  How would I achieve rendering html markup on individual words in a sentence?  That is, how would I force Looker to render the html markup in the example below?

f5fd6dc3-5e22-4b06-9f2f-aaeb07d3075b.png

  

Thanks in advance!

0 4 215
4 REPLIES 4

Have you tried different tags like <div> instead of <mark> ?

Yes, with no success.  All of <div>,  <p>,  <span>, <a> have the same issue. 

Have you tried using something other than the legacy table? It could be that the visual isn’t accepting the html format.

Regardless of visual, table or legacy table, same problem.

Top Labels in this Space
Top Solution Authors