Say you have a string:
I want to wrap certain words with a span tag, like:PHP Code:
$str='This is a<wbr /> line of te<wbr />xt';
But obviously that doesnt work because in the string there is a '<wbr />' in the middle of it. Note that I can't strip out the '<wbr />'.PHP Code:
Does anyone know how I would go about doing this?