0
votes

I have the following code in javascript.

var abc = `<div class="helo" data-id="99" data-price="100" data-category="mal">
        <div class="helo-category">Helo word</div>
        <div class="helo-description"><h2>The best burger in town 12345615</h2></div>
        </div>`;

And i want to get the following result

<div class="helo" data-id="99" data-price="100" data-category="mal"></div>