I have following string
"content \" content <tag attr1=\"val1\" attr2=\"val2\">content \" content</tag> content \" content"
I want to replace all "
characters inside tags definitions to '
character with use String.replace()
function. "
characters inside tag content must remain in its present form.
"content \" content <tag attr1='val1' attr2='val2'>content \" content</tag> content \" content"
Maybe is regex with some grouping can used?