typescript replace text between two single quotes code example
Example: javascript replace doublequote with empty string
const anyStr = 'Friend ... "OK" ... foo'
const formattedString = anyStr.replace(/["]/g, "\\"")
const anyStr = 'Friend ... "OK" ... foo'
const formattedString = anyStr.replace(/["]/g, "\\"")