view raw
Dilip G Dilip G - 6 months ago 45
Javascript Question

how to remove this symbol ₹ from table

i have this ₹ symbol i want to remove it so that i can export my table with this symbol export is giving error

i'm trying something like this

var table = $('#a').html();

<script src=""></script>
<div id="a">
<table id="table">

<td>abcd ₹ njdhjdrhjr</td>




You need to remove the unicode character of Indian Rupee sign

str.replace(/[^\x00-\x7F]/g, "");

The above code removes all unicode characters in a string. It should work.

Or to remove only ruppees sign


should work