PHP adds the & lt; br & gt; label after each segment of multi-segment text returned from mysql. how does one indent the first line? The & lt; br & nbsp; & gt; tag is added after each segment of the string text returned by php from the mysql database. how can I indent the & nbsp; label in CSS? The returned text does not contain the & lt; P & gt; label! Do you have any other methods? ------ Solution ---- PHP adds each segment of multi-segment text returned from mysql
How does a label indent the first line?
Php adds each segment of the string text returned from the mysql database
Label. how do I indent it in CSS?
And the returned text does not
Tag! Do you have any other methods?
------ Solution --------------------
It's impossible. it's added to your program, or it's already in the database.
------ Solution --------------------
1.
It must have been generated by replacing \ r \ n with your program.
2. use text-indent: XXpx;
------ Solution --------------------
Content ....
------ Solution --------------------
It is generated by nl2br.
------ Solution --------------------
If you have replaced the form when submitting the form.
------ Solution --------------------
1. use php's nl2br
2. use html
------ Solution --------------------
Process the data after it is retrieved ~
$ Content = 'Your content ';
$ Content =''. Str_replace ("
","
", $ Content ).'
';