I have a string which have data like this:
<div style="float: right;"><span class='abcd'> test data here </sapn></div>
I want the out put as :
<div style="float: right;"><span class='abcd'>test data here</sapn></div>
So far what I have tried is as in regex php,
preg_replace('/s+/', '', $data);
preg_replace('/[
]+/', '', $data);
But its not giving me the desired result
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…