How to select text within li using css
<p>I have following HTML markup
<a href="https://i.stack.imgur.com/6DycK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6DycK.png" alt="enter image description here"></a></p>

<p>How do i select text inside this <li></p>

<p>As you can see inside that <li> there is a div i dont want to affect contents on that div.</p>