XSS filter triming attribute name="class" in "a" tag of rich text editor | Community
Skip to main content
October 16, 2015
Solved

XSS filter triming attribute name="class" in "a" tag of rich text editor

  • October 16, 2015
  • 3 replies
  • 1192 views

Hello All,

I am trying to edit the HTML in rich text editor. I am trying to add a class attribute to anchor tag but somehow the class is not being added.

My assumption is that XSS filter is disabling this. Could you please help me with this?

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

The article [1] is an example of target attribute to configure xss. On similar line you can modify xss as per your requirement.

[1]   http://helpx.adobe.com/experience-manager/kb/target-attribut-issue-tag.html

3 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

The article [1] is an example of target attribute to configure xss. On similar line you can modify xss as per your requirement.

[1]   http://helpx.adobe.com/experience-manager/kb/target-attribut-issue-tag.html

smacdonald2008
Level 10
October 16, 2015

When you say 'modify the HTML' - do you mean you want to modify the style of the RTE text - can you please provide more details? 

Have you read AEM docs on configuring the RTE:

http://docs.adobe.com/docs/en/cq/current/administering/configuring_rich_text_editor.html

Vish2Author
October 16, 2015

Hello Donald,

When I say I am editing HTML, I mean to edit using misctools plugin.

< a href="# "  class="fancy-box"> </a> 

I am trying to add a class in <a> tag, as shown above. I save the changes and preview the page. I don't see the result as expected but when I open the RTE again to see the class is there. I am not sure why ?

      
misctoolsspecialchars
sourceedit

Miscellaneous tools allowing you to enter special characters or edit the HTML source.

See Adding Special Characters if you want to define your own list.