Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在locahost剥离的AEM锚标签_Aem - Fatal编程技术网

在locahost剥离的AEM锚标签

在locahost剥离的AEM锚标签,aem,Aem,当我使用不带href=”“all is good且按钮样式存在的锚定标记时,第二个a add an href it将完全删除锚定标记,并仅在父div中保留文本 没有href: <div class="container"> <a class="button"> my button</a> </div> 结果显示在浏览器中 <div class="container">

当我使用不带href=”“all is good且按钮样式存在的锚定标记时,第二个a add an href it将完全删除锚定标记,并仅在父div中保留文本

没有href:

<div class="container">
 <a class="button"> my button</a>
</div>

结果显示在浏览器中

<div class="container">
 my button
</div>

我的纽扣

看起来这可能是链接检查器的工作。尝试添加:


我想它也可能与xssconfig有关

在示例中将“href”属性添加到div时


我的纽扣
一般情况下,这是不允许的,因此AEM可以将其删除
/libs/cq/xssprotection/config.xml

不,它仍然做同样的事情,我的错,有一个打字错误。谢谢@RaphaelSchweikert
<div class="container">
 <a  href="/content/mypage.html" class="button"> my button</a>
</div>
<div class="container">
 my button
</div>