title: How prevent DOM XSS
body: <p>I have function to get radio button value.</p>
  <pre><code>var val = $('input[name=&quot;test_'+ id + 
  '&quot;]:checked').val();
  </code></pre>
  <p>but it cause DOM XSS. How do I refactor to prevent XSS?</p>
  <p>thanks.</p>