Displaying the span id in HTL | Community
Skip to main content
Level 2
November 5, 2024
Solved

Displaying the span id in HTL

  • November 5, 2024
  • 1 reply
  • 407 views

I have a requirement I have to display a ID from the text box which I added in the dialog field (rich text) <span class="num"></span> and I am calling it using sling model class and used like this ${practice.Response @ context='html'}  and in Js i have given element.innterhtml it is working if I give it in HTML instead of passing it from the dialog. I was getting <span class="num"></span> as an plain string instead of html element as below so how to acheive this


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
November 5, 2024
Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.