looking for tool to convert unescape string to escapted string
<p>Hello 
i just wander where can i find a tool that takes in my case java script string that is<br>
unescape and converting it to escaped string so i could use it as string value in c++ </p>

<p>for example characters like " i need to convert it to \"<br>
i need something smart and not just replace all function . </p>
