In an html like the sample below, I need to wrap the text I need to select
part in a span tag with a custom class, but how do I select just that part excluding the content in the strong
tags above it, using jquery?
<span>
<strong> random gibberish </strong>
text I need to select
</span>
Edit: simply using .text()
on parent won't work because that converts the whole inner html to text including the part in strong
with div using jquery?](https://stackoverflow.com/questions/39685334/how-to-wrap-previous-and-next-sibling-text-of-br-with-div-using-jquery) – Mohammad Oct 27 '18 at 14:14