Can anyone help figure out why I'm running into an error with my Dispatcher not loading a line of HTML code, it's instead loading it as plain text. All other pages load the tags properly, but not the first page.
When doing an "Inspect" the tags are showing up like this:
<div class="guideFieldLabel top" style="" data-richtext="true"><h2><b> Words Words Words as</b></h2></div>|
Where they should be showing up like this just like on the Publish instance:
<div class="guideFieldLabel top" style="" data-richtext="true"><h2><b>Words Words Words</b></h2></label></div>
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @AEM_user25 did you use @ context='html' in your HTL? If not, Please try using it.
For Example:
<div class="guideFieldLabel top" style="" data-richtext="true">${modelName.richTextName @ context='html'}</div>
If this doesn't resolve the issue please check the RTE configuration in the component's dialog. Also check your model code is correct.
Since the issue is happening on the first page only, there might be some configuration mismatch. Is the first page also using the same template?
not enough info
I believe you can encapsulate HTML code inside another tag so code renders as code.
Hi @AEM_user25 did you use @ context='html' in your HTL? If not, Please try using it.
For Example:
<div class="guideFieldLabel top" style="" data-richtext="true">${modelName.richTextName @ context='html'}</div>
If this doesn't resolve the issue please check the RTE configuration in the component's dialog. Also check your model code is correct.
Since the issue is happening on the first page only, there might be some configuration mismatch. Is the first page also using the same template?
@AEM_user25 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!
Views
Replies
Total Likes