PHP compresses HTML page code (clears spaces, line breaks, tabs, comment marks). There is a good way to compress HTML, compressed HTML is actually: Clear line breaks, clear tabs, remove the annotation tag. The role it plays cannot be belittled. now provides PHP compression HT
HTML newline label definition and usage: You can insert a simple line feed. The tag is an empty label (meaning it has no end tag, so this is the wrong:). In XHTML, the end tag is placed in the start tag, which is . Note that the, tag simply starts a new line, and when the browser encounters a tag, it usually inserts some vertical spacing between adjacent paragraphs. The difference between
The OutputControl function allows you to control the output of data in the script. It is very useful, especially when you want to output the file header after the data has been output. The output control function does not affect the header information sent using header () or setcookie (). it only applies to data blocks similar to echo () and PHP code.
Let's take a simple example to give you a general impression on Output Control:
Example 1.
PHP
the following example:
imgid="analysisChart"src="ChartPic_000007.jpeg?B9FA64E7-2020-4430-AAF4-B20A51794909"usemap="#usemap_analysisChart">
mapid="usemap_analysisChart">
area>...area>
map>
The above code snippet is the HTML code output by the Web Chart control in Dundas Web Controls. The Chart image with hot area does not seem to have any problems in
After a project is updated, it cannot be built. Depressed.
Asked the boss, saying =
I read the blog http://www.cnblogs.com/sanshi.
I think cnblogs is a good blog ....
We hope csdn can continue to work.
We found HTML beauty on http://www.cnblogs.com/sanshi. I studied it myself...
Half of the research, the boss said to install a new server ....
Wait for lunch and check again ....
The Code is as follows. It
PHP implements code for deleting HTMl tags. Copy the code as follows: *** retrieve the html tag ** @ accesspublic * @ paramstringstr * @ returnstring ** functiondeletehtml ($ str) {$ strtrim ($ str); clear both sides of the string
The code is as follows:
/*** Retrieve
This article provides a detailed analysis of PHP code for deleting HTMl tags. For more information, see
The code is as follows:
/**
* Retrieve html tags
*
* @ Access public
* @ Param string str
* @ Return string
*
*/
Function deletehtml ($ str ){
$ Str = trim ($ str); // clear spaces on both sides of the st
The output control function does not affect the header information sent when header () or setcookie () is used. It only applies
Code .
Let's take a simple example to give you a general impression on Output Control:Example 1.PHP codeCopy codeThe Code is as follows: Ob_start (); // open the bufferEcho "Hello \ n"; // outputHeader ("Location: index. php"); // redirects the browser to index. php.Ob_end_flu
CopyCodeThe Code is as follows :/**
* HTML code input verification Conversion
* @ Param Str
* @ Return
*/
Public String htmlfilter (string Str ){
// Conversion
STR = Str. replaceall ("","");
// Conversion STR = Str. replaceall ("// Conversion>
STR = Str. replaceall (">", "> ");
// Converted to a space,
// Note: using "" with spaces will cause XML pars
Copy codeThe Code is as follows :/**
* Retrieve html tags
*
* @ Access public
* @ Param string str
* @ Return string
*
*/
Function deletehtml ($ str ){
$ Str = trim ($ str); // clear spaces on both sides of the string
$ Str = strip_tags ($ str, "$ Str = preg_replace ("/\ t/", "", $ str); // use a regular expression to match the content to be replaced, such as space, line
Common htmlCodeBold highlight font to increase color1) join the connection:
2) Open the connection in a new window:
3) mobile Font: 5) bold font: 6) italics: 7) font underline: 8) font strikethrough: 9) font increase: 10) font control size: 12) Eliminate the underline Of the connection: 13) paste Music: 14) Flash: 15) post a video file: 16) line feed: 17) Section: 18) original text style: 19) change the post backgrou
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.