here i have a string which has encoded html entities in it. i am trying to decode the string which is containing the html entities inside this.
This is what i have in encoded form
<li>please click <a target="_blank" href="https://app.answers/detail/a_id/140">here</a></li>
i want it to convert it to
<li>please click <a target="_blank" href="https:app.answers/detail/a_id/140">here</a></li>
here is what i have tried.
decodedVal = decodeURI(<li>please click <a target="_blank" href="https://app.answers/detail/a_id/140">here</a></li>)
but i am getting exception URI malformed
how can i do this?