Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Re: href attribute is removed while saving the text in the RTE component


Level 4

Hi @maans ,


Please check if there is overlay for the /libs/cq/xssprotection/config.xml for the same in /apps and there is change in the configuration for the a tag as shown below (default config)


If html tags are getting lost in RTE are mainly due to AntiSamy rules in AEM. Please check the error logs for the same(org.apache.sling.xss.impl.HtmlToHtmlContentContext AntiSamy warning). If not, then please add your error logs.

2 Replies


Level 2

Hi @bipinchandra92 ,

Link plugin is working as expected. But in my plugin when I am trying to add a href attribute in <a> tag. In this case, href is removed while saving the RTE.

Error logs:

06.06.2022 11:42:05.265 *ERROR* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL http://www.adobe.com/go/aem6_5_activation: java.net.SocketException: Connection reset
06.06.2022 11:42:25.381 *INFO* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] org.apache.http.impl.execchain.RetryExec I/O exception (java.net.SocketException) caught when processing request to {s}->https://business.adobe.com:443: Connection reset
06.06.2022 11:42:25.381 *INFO* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.7176] org.apache.http.impl.execchain.RetryExec Retrying request to {s}->https://business.adobe.com:443
06.06.2022 11:42:31.011 *WARN* [[0:0:0:0:0:0:0:1] [1654495951006] POST /content/wbg/us/en/testpage0/_jcr_content/root/twit_text HTTP/1.1] com.adobe.cq.wcm.core.components.internal.servlets.DMAssetPostProcessor Last file reference modification was null for 'fileReference' property name.




Community Advisor

Can you check if plugin is generating correct html?

Arun Patidar