내 커뮤니티 업적 표시줄을 확대합니다.

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

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Target="blank" getting removed due to escapeXml="true"

Avatar

Level 2

Hi ,

I am facing a small problem with the current text component in CQ5 ,  Whenever I am making any hyperlink with the help of text component and I select the option of "Open in New    Window " it is getting captured inside the text element properties . But the link does not open in new window , the reason being the property escapeXml="true" used in the text.jsp of text component is removing the target="_blank" from the text .

Can anyone , please help me in this .

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

One solution is to overlay the standard text component and then remove that property of the CQ text if you wanted to in your own text component.
Then you would get your target="_blank" back

Regards
/Johan

원본 게시물의 솔루션 보기

4 답변 개

Avatar

정확한 답변 작성자:
Level 7

One solution is to overlay the standard text component and then remove that property of the CQ text if you wanted to in your own text component.
Then you would get your target="_blank" back

Regards
/Johan

Avatar

Employee

Your best bet is to configure the XSS protection to allow the target attribute. See http://helpx.adobe.com/experience-manager/kb/target-attribut-issue-tag.html

Avatar

Level 2

Thanks a Lot Justin , It worked ....

Avatar

Level 2

Thanks Johan for the quick reply ,  I just wanted to know is there any other way also other than creating a new text component ..and also if I remove the excapeXml="true" from that , it would not provide it's functionality which might be needed later on.

The reason for this that when we have escapeXml="true" is internally  using a TextTag tag library class which is filtering the content using xssAPI.filterHTML(text).

 

So is it possible to make some configuration change which I can do inspite of creating a completing new component