mysql_real_escape_string and jquery
<p>Let say i have a column product name and it has value <code>Shoe's</code>.
When i pick that value from db and use <code>mysql_real_escape_string</code> and placed it in html hidden input it becomes <code>&lt;input type='hidden' value='Shoe\'s' id='product_name'&gt;</code></p>

<p>When i do <code>$('#product_name').val()</code> it return only <code>Shoe\</code> truncating the <code>s</code> or rest of the value after that. The jQuery is assuming an escaped single quote as a closing quote for attr value.</p>

<p>On solution is to use <code>value=""</code> (enclosed in double quotes) but what if value contains a double quote? So the problem persists.
Any help is appreciated.</p>

<p>Thanks!</p>
