How to make text of a variable bold which is inside of a div?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to make text of a variable bold which is inside of a div?

tanvir
How can I make value of ${acount} bold in below case ?

<div th:fragment="left" id="left" style="padding: 5px;" th:if="${account != null}" th:text="#{logout.label.welcome}+' '+${account}"></div>

Output will appear like below -
Welcome demouser
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to make text of a variable bold which is inside of a div?

Metroids
I would split those into additional tags.

<div th:fragment="left" id="left" style="padding: 5px;" th:if="${account != null}">
    <span th:text="#{logout.label.welcome}" />
    <b th:text="${account}" />
</div>
Loading...