I am trying to insert HTML code with JavaScript, but the Browser does not show Thymeleaf rendered

```
$('<span [[$ th:text#{some.property.key}]]  id="counter" class="UI-modern"> 
   </span>').insertAfter("#article");

```

HTML code

```
<p id="article">Example text</p>

```

The key **some.property.key** is the property. In Thymeleaf it would look like this:

```
<span th:text="#{some.property.key}" id="counter" class="UI-modern">
</span>

```

I would like to write the above code with JavaScript jquery insertAfter() below the id "article"