JS - apostrophe - wont get replaced
<p>I'm having this problem with the apostrophe ("'") in JS. I'm using the encodeURIComponent() to encode this and then replace the (') with (%27) as follows.</p>

<p>var request = encodeURIComponent(requestString).replace("'", "%27");</p>

<p>But if the apostrophe is with a bracket, the apostrophe wont get replaced. </p>

<p>ex: (")'")
    ("')")
    ("('")</p>

<p>Even when the apostrophe is followed by a numeric number it wont get replaced.</p>

<p>Is there a solution for this?</p>

<p>Thanks in advance.</p>

<p>Nilushi</p>
