PHP automatically converts plain text to Web pages, and PHP automatically converts plain text to Web pages. Recently, an old friend of mine called me for help. He has been a journalist for many years and recently gained the right to re-publish many
Recently, an old friend of mine called me for help. He has been a journalist for many years and recently gained the right to re-publish many of his early columns. He looks forward to posting his work on the Web; but his column is in plain text
Automatically converts plain text to php code on the web page. First, let's look at an example of a plain text file that my friend wants to convert: the reference content is as follows: Copy the code as follows: GreenforMars! JohnR.
First, let's look at an example of a plain text file my friend wants to convert:
The following is the referenced content:
Copy CodeThe code is as follows:
Green for mars!
John R. Doe
The idea of little green men from Mars, long a staple of the
Recently, an old friend of mine called me for help. He has worked as a journalist for many years and recently gained the right to publish many of his early columns. He wanted to put his work on the web, but his columns were saved as plain text files,
Recently, an old friend of mine called me for help. He has worked as a journalist for many years and recently gained the right to publish many of his early columns. He wanted to put his work on the web, but his columns were saved as plain text files,
Ajax of Text/plain, application/x-www-form-urlencoded and Application/jsonIn the HTTP request, if it is a GET request, then the form parameter is appended to the URL in the form of name=value&name1=value1, and if it is a POST request, then the form
PHP can be used to quickly convert plain ASCII text into readable HTML tags. First, let's look at an example of a plain text file that my friend wants to convert:
Reference content is as follows:
The code is as follows:
Green for Mars!John R.
In a recent example, I want to remove all HTML formats of the stored string content, that is, only plain text,
I checked some related information on the Internet and the usage of regular expressions,
One method is recommended to everyone.
First, let's look at an example of a plain text file my friend wants to convert:
The following is the referenced content:
Copy the Code code as follows:
Green for mars!John R. DoeThe idea of little green men from Mars, long a staple of the science
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:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.