PHP adds the <br/> label after each segment of multi-segment text returned from mysql to indent the first line.

Source: Internet
Author: User
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 & lt; P & gt; & lt;/P & gt; PHP adds the multipart text returned from mysql after each segment.
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 --------------------
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 ).'


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.