javascript - how to make a text in one line in php -


in js code must 1 line when add text db make 2 lines , not work like

function(varone,asdasdasd adasd); 

i want it

function(varone,asdasdasdadasd); 

how can make php smarty useed {strip} , {ldelim} , not worked used tirm not worked too

you try

$data = str_replace("\r\n", "", $data); 

if html, try function nl2br()


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -