Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タグから「クラス属性」を取り除きたい。最善の方法は何ですか?
例:
<div id="portlets-footer" class="row"> ... </div>
ありがとうヴィート
ドキュメントのドロップのセクション[1]によると、「ドロップ」+「属性」を使用できます。
「タグ全体ではなく属性を削除する場合は、attributes属性を使用して、一致するテーマノードに削除する必要がある属性のスペース区切りのリストを提供できます。たとえば、attributes = "class" class属性は、一致したノードから削除されます。attributes= "class id"を使用すると、class属性とid属性の両方が削除されます。」
[1] http://diazo.org/basic.html