HTL HTML context removes attribute
Hi guys,
We have an AEM component that allows users to enter HTML and the HTML is rendered like so:
<p data-sly-test.text="${textModel.text}"
data-sly-unwrap="${textModel.isRichText}">${text @ context = 'html'}</p>
So far, so good, works fine. Now we need to create links to pages that the link checker won't find as valid (they work in the browser because the is JavaScript that will handle them).
We'd rather not disable the link checker entirely. For links that are generated in HTL, we add the attribute x-cq-linkchecker='skip' and it works fine, but the 'html' context removes that attribute when a user adds it.
Is there any documentation about exactly what attributes are allowed in html context? Is there a different context I can use that is more lax regarding html attributes but still does proper escaping, etc?
Thanks!