jQuery doesn't give a proper output, but gives these : <pre><code>(function() {
    var a = document.createElement('a');
    var mref = 'http://www.someprivatelink.net';
    var linkText = document.createTextNode(title1);
    var title1 = $('#node-264152').find('.audio-description').html();
    alert(title1);
a.appendChild(linkText);
a.title = title1;
a.href = mref;
document.body.appendChild(a);
})();
</code></pre>

<p>I'm using this script to add an download link to the bottem of my page wich doesn't to to be permanent so I enter it via console with Google Chrome.</p>

<p>The ID and the Class are correct to the value I need to extract, I've added the alert to check if the fault was in the HTML or in my javascript.</p>

<p>The output at the bottem of the page has the value of 'Undefined', while it has to be 'Log moving along in body of water 2'</p>

<p>But the alert does display (<a href="https://i.stack.imgur.com/O160f.png" rel="nofollow noreferrer">screenshot</a>) this message with a few boxxes before and after the message, I think this is causing the undefined error.</p>

<p>Is there any solution my var can be converted into only text?</p>

<p>Thanks in advance, Tjalle</p>
