一些 htaccess 代码未出现在 HTML <code> 和<pre>元素中



我有以下代码

<pre>
<p style="margin:0;font-weight:bold;padding:5px;">HTACCESS Test</p><hr>
<code>
<FilesMatch "^.">
Order allow,deny
Deny from all
</FilesMatch>
</code>
</pre>

正如您在运行代码时所看到的,<FilesMatch "^."></FilesMatch>行不会出现。我做错什么了吗?

提前感谢

对于其他正在寻找解决方案的人,在<pre><code>标记中使用HTML字符时,需要转义它们。

最新更新