I like to remove single quotes from a mysql string but no luck so far.

It's javascript but it has to work for phpmyadmin database and I did not know where to place this.


Code:

<script type="text/javascript">
$(document).on("click",".item", function(e) {
var filename = $(this).text().toLowerCase() + '.php';

filename = filename.replace(/\s+/g, '').replace(''', ''); /* remove spaces and non-alpha characters from string */


$('#uitkomst').load(filename);
e.preventDefault();
});
</script>