I want to strip the "class attribute" from a tag. What's the best way?
Example:
<div id="portlets-footer" class="row"> ... </div>
Thank's Vito
according to the drop's section of the docs [1] you can use "drop" + "attributes":
"If you want to drop attributes instead of whole tags, you can use the attributes attribute to provide a space-separated list of attributes that should be dropped on the matched theme node(s). For example, with attributes="class" the class attribute will be dropped from the matched node(s). Using attributes="class id", the class and id attributes will both be dropped."
[1] http://diazo.org/basic.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With