href attribute is removed while saving the text in the RTE component
Hi All,
I have created a custom plugin to add some html code (i.e. once we select a word and click on the tool button created as part of new plugin). Example:
'<a title="we-retail alt" href="/content/we-retail/us/en.html" target="_blank">discovery</a>'
After adding this I can see this on RTE component dialog.

Once I close (save) the dialog the added href is removed.
and on View Source it is coming like this:
<a title="we-retail alt" target="_blank">discovery</a>
I am using AEM 6.5.12
Can you please tell me the root cause here and how to resolve this issue?
To me it looks like RTE limitation for security purpose.

