title: How to add single quote in the variable in Javascript?
body: <p>I have variable <code>var str</code> as following:</p>
  
  <pre><code>var str = &lt;option value="1"&gt;tea&lt;/option&gt;;
  </code></pre>
  
  <p>I would like to make it as below</p>
  
  <pre><code>var quote_str = '&lt;option value="1"&gt;tea&lt;/option&gt;;'
  </code></pre>
  
  <p>Is there anyone can help me? Thanks in advance!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>I have tried the following code,however, it's not correct.</p>
  
  <pre><code>var quote_str =  'str';
  </code></pre>