title: Convert English numbers to Persian/Arabic only for a specified div
body: <p>I know this question has been replied many times here, but I still haven't got an exact answer.. I need to convert English letters to Persian/Arabic letters by some javascript, but not for the entire page, but only for a div or more. like only for a specific class.</p>
  
  <p>I have come across these codes, but don't know which one are the best to use.</p>
  
  <pre><code>function convert($string) {
      $persian = array('۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹');
      $num = range(0, 9);
      return str_replace($persian, $num, $string);
  }
  </code></pre>
  
  <p>I need exact that source to implement only on one div-class.</p>
  
  <p>For example: </p>
  
  <pre><code>&lt;div class="demo"&gt;12345&lt;/div&gt; 
  </code></pre>
  
  <p>should change to </p>
  
  <pre><code>&lt;div class="demo"&gt;۱۲۳۴۵&lt;/div&gt;
  </code></pre>