I have data like this
'{"text": "Sensibleness"\\, "min_value": "confusing<br>illogical<br>out of context<br>factually wrong"\\, "max_value": "common sense<br>logical coherence"},{"text": "Specificity"\\, "min_value": "boring<br>unspecific"\\, "max_value": "interesting"}'
I need to put it in the table with other elements
<div class="first-scale">
<p><b>Answers</b></p>
<table class="responses_table">
{{#each responses}}
<tr>
<td rowspan="2" style="height:50px;vertical-align:bottom">{{text}} </td>
<td style="text-align:left;vertical-align:bottom"><small>{{min_value}}</small> </td>
<td style="text-align:right;vertical-align:bottom"><small>{{max_value}}</small></td>
</tr>
<tr>
<td colspan="2" style="text-align:center;vertical-align:top">
<input type="range" name="ratings" class="range" min="1" max="100" value="50"
data-clicked=false onclick="((elem) => {elem.dataset.clicked = true})(this)">
</td>
</tr>
{{/each}}
</table>
</div>
In the end I've got this table:
Why <br>
does not work? How to make it work?
I cannot change data type. All I can do is change the separator from <br>
to something else.
` is being rendered as text. You need to output them as raw HTML instead – Martin Jun 25 '21 at 10:34