How could extract context from a p-tag with selected option and also others word have no option to selecte?

I have a p-tag for showing the article which contains two types –
the word you don’t need to change and the word you can select in it.
enter image description here

    <div class="context">
        <p v-html="report_data" class="showTxt" id="showTxt" contenteditable="true"></p>
    </div>

and I wanna make a window for showing the result which user selected and also include others don’t need to change.

**
rr = $(‘#showTxt option:selected’).text()

this way would delect other word don’t need to change

r_content = document.getElementById(‘showTxt’).textContent

and this way would show everything include all option

thanks in advance