This filter can delete HTML elements and change element attributes.
The tag parameter defines HTML element and modifying action.
Format:
tag = tagname:action
tagname – specifies HTML element's name (e.g. blink).
action – defines action to apply to the specified element.
Possible action values:
Note: Be careful with the delete action. If there is no closing tag, the rest of the document will be deleted.
See also Common Filter Parameters.
The following filter strips <blink> and <marquee> tags. For instance, a fragment like “<blink>Blinking text</blink>” will be converted to “Blinking text”:
type = Tag Filter name = Blink and Marquee Stripper enabled = true logging = true include = * tag = blink:strip tag = marquee:strip
The following filter makes sure that all frames are resizable:
type = Tag Filter name = Resizable Frames enabled = true logging = true include = * tag = frame: delattr "noresize" tag = frame: delattr "frameborder" tag = frame: delattr "scrolling" tag = frameset: delattr "frameborder" tag = frameset: delattr "framespacing" tag = frameset: delattr "border"