my text contains ' and " characters so i want replace instead of ' as 1 and " as 2 using jquery
EX:
<span style="color: #ff0000; font-style: italic; text-decoration: underline line-through">text</span>
instead of special characters i want to put 1,2,3,4,etc.... the result will be
<span style=1color: #ff0000; font-style: italic; text-decoration: underline line-through1>text</span>