What about interpolation

<%= @topic_view.topic.title %>
<%= @topic_view.topic.average_rating %> <%= @topic_view.topic.posts.count { |p| !!p.custom_fields['rating'] } %>

How to embed a tag when you use

interpolation list.innerHTML = ${</br>} ${name.value} ${surName.value} ${age.value};

Could you give us more context?

A tag is not a variable (unless JSX), so you’d do:

list.innerHTML = `</br> ${name.value} ${surName.value} ${age.value}`;