title: How do I implement hex2bin()?
body: <p>I need to communicate between Javascript and PHP (I use jQuery for AJAX), but the output of the PHP script may contain binary data. That's why I use <code>bin2hex()</code> and <code>json_encode()</code> on PHP side.</p>
  <p>How do I convert the hexadecimal string in binary string, with JavaScript?</p>