I need to add <b>
tags around the first line of text, but not contained in a paragraph tag - rather just all the text before the first <br>
.
It's a PHP string being echoed, so it seems to me pretty simple but I'm not sure how I'd get just that section of text, bold it, and then continue with the rest as normal.
$str = "First Line<br>SecondLine<br>Third Line<br>";
echo $str;
//output:
<b>First Line</b><br>SecondLine<br>ThirdLine<br>";