HTML escape for euro character not being interpreted in textarea?
<p>It's showing <code>&amp;euro;</code> instead of the € (currency sign) in the textarea. Does anyone have an idea why this is going wrong?</p>

<pre><code>&lt;?php
$currency = "&amp;euro;"; //using php with other data from database

echo "&lt;script&gt;
      $('#share_button').click(function(e){
      // pass the currency to javascript and put in textarea shared with other on clicks
           $('#snsdescp').val(`".$currency."`);
      });&lt;/script&gt;";
?&gt;

 //shared textarea
&lt;textarea class="form-control" name="message" id="snsdescp"&gt;&lt;/textarea&gt; 
</code></pre>