($article, $)
| 26 | |
| 27 | // Remove attributes like style or align |
| 28 | export default function cleanAttributes($article, $) { |
| 29 | // Grabbing the parent because at this point |
| 30 | // $article will be wrapped in a div which will |
| 31 | // have a score set on it. |
| 32 | return removeAllButWhitelist( |
| 33 | $article.parent().length ? $article.parent() : $article, |
| 34 | $ |
| 35 | ); |
| 36 | } |
no test coverage detected