npm i --save selenium-webdriver@3.6.0
var button = document.querySelector('#button_id')
var input = document.querySelector('#input_id')
button.addEventListener('click', function() {
input.value = input.value.replace(/<iframe.+src="([^"]+?)".+/, '$1')
})
button.addEventListener('click', function() {
var el = document.createElement('div')
el.innerHTML = input.value
input.value = el.getElementsByTagName('iframe')[0].getAttribute('src')
})
Built-in classes such as Date, Array, DOM etc cannot be properly subclassed due to limitations in ES5 (for the es2015-classes plugin). You can try to use babel-plugin-transform-builtin-extend based on Object.setPrototypeOf and Reflect.construct, but it also has some limitations.
extendPrice.text(summ);
extendPrice.text(function(){
let month = $(this).closest('.range-item').find('.licenses-month').attr('data-month');
return parseInt(count * month * defaultPrice * 100) / 100;
});