dot Posted February 10, 2006 Report Share Posted February 10, 2006 chau. es ar eregi_replace izfiltreeju posteetos datus un enteriishu vietaa lieku <br> viss jau ir ok, bet veelaak source izskataas nesmuki apmeeram taa: viena rindinja <br>otra rindinja <br>treshaa <br> veel un veel var kaut kaa sadziit visu vienaa rindaa? lai ir <div>blaabblaa<br>asdasdsd<br>u.t.t.</div> Link to comment Share on other sites More sharing options...
Delfins Posted February 10, 2006 Report Share Posted February 10, 2006 Kaut kas tamlīdzīgs... [\r\n]+? => '<br />' Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 10, 2006 Report Share Posted February 10, 2006 preg_replace("/\r\n|\n|\r/", "<br />", $text); Link to comment Share on other sites More sharing options...
Recommended Posts