1 |
module Loofah |
× |
2 |
module Scrubbers |
× |
3 |
class NoComment < Scrubber |
× |
4 |
def initialize |
× |
5 |
@direction = :top_down |
× |
6 |
end
|
× |
7 |
def scrub(node) |
× |
8 |
return CONTINUE unless node.comment? |
× |
9 |
node.remove |
× |
10 |
return STOP |
× |
11 |
end
|
× |
12 |
end
|
× |
13 |
end
|
× |
14 |
end
|
× |