Select text not wrapped in html tag

Select text not wrapped in html tag

Hi everyone!! , i just want to ask how to select text that is not wrapped in html tag, i have a mark-up that looks like this:
  1. <div>
  2. <p>A sample text</p>
  3. Remove this one
  4. </div>
lets say i want to remove the ' Remove this one' text, how is this possible?, help is very much appreciated!!  , Thank you and God Bless!!