I try to understand how to remove all children elements without specified attribute for example:

**This is the html:**

```
<div class="container">
  <span></span>
  <div></div>
  <strong data-*></strong>
  <p></p>
  <div data-*></div>
</div>

```

What i want is to remove all element inside the container and without **data-\*** attribute.

**data-\***

The attribute can be **data-anything** (data-color, data-border, etc).

I'm looking **javascript only solution**.