I have a contenteditable. Inside it user wrote "Hello my dear world\' and selected \'my dear\'.
I want to replace this selected fragment but keep the selection. So \