我想允许使用 Antisamy 的所有 svg 元素及其属性。我怎么做?我尝试在 Antisamy 策略文件中包含所有元素及其属性,并将正则表达式设置为允许任何字符串为 .* 。但我收到以下错误消息
The svg tag contained an attribute that we could not process.
The xmlns attribute had a value of "\"http://www.w3.org/2000/svg\"".
This value could not be accepted for security reasons. We have chosen to remove this attribute from the tag and leave everything else in place so that we could process the input.
The width attribute had a value of "\"593\"". This value could not be accepted for security reasons.
以及其他标签的许多其他错误消息。有什么方法可以允许这些标签而不将它们全部添加到策略文件中?
对此的任何帮助将不胜感激。谢谢!