<a href="tel:+720904201444267&nbsp;" data-marker="phone-popup/call-button">Позвонить</a>
<pre id="res"></pre>
(function(){

  var link = decodeURIComponent(document.querySelector('a[data-marker="phone-popup/call-button"]').href); // заношу значение ссылки в страницу

  res.textContent= 'link = ' + link + '\nVar 1 = ' + link.replace(/\s+/g, '') + '\nVar 2 = ' + link.trim();
  
  console.log(res.textContent);
})()

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.