kalster Posted June 11, 2015 Share Posted June 11, 2015 Is there a way to remove the white space seen between <br > or other html tags using preg_replace or something? Quote Link to comment Share on other sites More sharing options...
requinix Posted June 11, 2015 Share Posted June 11, 2015 (edited) Is it as simple (in your case) as saying "remove all the whitespace between a > and Edited June 11, 2015 by requinix Quote Link to comment Share on other sites More sharing options...
kalster Posted June 11, 2015 Author Share Posted June 11, 2015 No. Between < and >. After searching for a few hours I just found a solution to this problem. preg_replace('/br\s\s+/', 'br ', $text); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.