我的AntiSamy文件似乎不喜欢HTML5 <figure> <img src="image/path"/> </figure>
标记。它允许标签本身存在,但其中没有任何内容。
所以这个:
<figure> </figure> <img src="image/path"/>
正在成为这个:
<figure>
如何阻止反诽谤删除<figure>
标记的内容?我希望它允许<VirtualHost *:80>
ServerName server1.com
ServerAlias server2.com
ServerAlias server3.com
DocumentRoot /var/www/html/web
# if we're setting up production environment
# DirectoryIndex app.php
# if we're setting up development or qa environment
# DirectoryIndex app_dev.php
<Directory /var/www/html/web>
AllowOverride None #important rule, do not allow any .htaccess
Order allow,deny
Allow from All
RewriteEngine On
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^app\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]
# if we're setting up production environment
# RewriteRule .? %{ENV:BASE}/app.php [L]
# if we're setting up development or qa environment
# RewriteRule .? %{ENV:BASE}/app_dev.php [L]
</Directory>
ErrorLog /var/log/httpd/error.log
LogFormat "%h %l %t \"%r\" %>s %b" common
CustomLog /var/log/httpd/access.log common
</VirtualHost>
标记及其所有属性和内容。