I have a Json file with html content in some rows, how ever everytime I try to use preg_replace to match this combination of a break and new line it doesn't work.
For example, <br>
No atraviesa el papel
Want to replace with: <br>No atraviesa el papel
Already tried:
$pattern = '/<br>\n/m';
$subs = '<br>';
$json_response = preg_replace($pattern, $subs, $json_response);
Im looking to remove the newline and leave only the <br>
\v` work? – user3783243 Sep 10 '19 at 01:14
\s*` if you just want to remove all whitespace after a `
`. – user3783243 Sep 10 '19 at 01:33