3

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.

また、他のタグの他の多くのエラー メッセージも同様です。ポリシー ファイルにすべてのタグを追加せずに、これらのタグを許可する方法はありますか?

これに関するヘルプをいただければ幸いです。ありがとう!

4

0 に答える 0