Insert value of object into span tag
<p>I have an object:</p>
<pre><code>message: {
    text: &quot;Here is some text&quot;
}
</code></pre>
<p>I want to insert it into a span tag like this:</p>
<pre><code>&lt;span&gt;message.text&lt;/span&gt;
</code></pre>
<p>This won't print 'Here is some text', instead it will just show 'message.text' on the webpage. How can I get it to show the actual contents of the object?</p>