コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

How to use escapeXml in sightly

Avatar

Level 7

Hi Team,

While printing the data which got from rich text editor widget using sightly, it is displaying HTML tags as well. Please let me know how can I display the the data without HTML tags  without disturbing the final format of the entered HTML.

E.g:

Input Data: <b>Bold</b> Output: Bold but not Bold or <b>Bold</b>

 

Thanks,

AryA.

1 受け入れられたソリューション

Avatar

正解者
Level 8

You need to set the context when outputting.

<span>${properties.text @ context='html'}</span>

http://docs.adobe.com/docs/en/aem/6-1/develop/sightly/expression-language.html#Display Context

元の投稿で解決策を見る

1 返信

Avatar

正解者
Level 8

You need to set the context when outputting.

<span>${properties.text @ context='html'}</span>

http://docs.adobe.com/docs/en/aem/6-1/develop/sightly/expression-language.html#Display Context