.Net プロジェクトで AntiSamy を使用しています。<span>
タグのスタイル属性はそのままにしておきたいと思います。ポリシーを変更しようとしましたが、何をしても同じ結果が得られます... これから:
<p><span style="font-size:10px"><span style="font-family:arial">Name here<br />
これに:
<p><span style=""><span style="">Name here<br />
ポリシー ファイルを調べたところ、次のコメントが表示されました。
<!-- the "style" attribute will be validated by an inline stylesheet scanner, so no need to define anything here - i hate having to special case this but no other choice -->
ここでいくつか質問があります...
ポリシー xml ファイル内のこのコメント行は何を意味していますか?
のスタイル属性を変更する必要がありますか?それとも、タグ<common-attributes>
のスタイル属性に影響しませんか?<span>
スタイル属性のコンテンツをそのままにするために、<tag name="span" action="validate"/>
下だけを変更する必要がありますか?<tag-rules>
前もって感謝します。