First, let's look at your own writing method. The code is as follows:Copy code Str_replace ("", '', str_replace (' ','', str_replace ('', '', $ vv )))The simplest method is to replace the two divs specified in the $ vv variable. Later, we found
Strip_tags Definitions and usage
The Strip_tags () function strips out the HTML, XML, and PHP tags in the string.
Note: This function always strips HTML comments. This cannot be changed by allow parameters.
Note: This function is binary safe.
The Network is a constantly evolving organism. It is important to build a page that can adapt to the Internet development for a long time. It can be a rapid follow-up of your website in the rapids of Internet development. Building standard-compliant
Strip_tags extended function-processing html (for collection)
Strip_tags extended function-processing html (for collection)
/*** This function turns HTML into text * converts html to txt */function html2txt ($ document) {$ search = array ('@
]
Suspected bugs:When SGMLParser is used to process javascript in html tags, it is inappropriate under specific circumstances.
Library:Sgmllib library of Python2.4/2.5
Link database:Beautiful Soup version 3.0.5 and 3.0.3
Example:The html code is
Phpcms v9 template making common code collection
1. Intercept Call title length
{Str_cut ($r [title],36, ')}, followed by quotation marks to remove ....
2. Format time
Call format Time 2011-05-06 11:22:33
{Date (' y-m-d h:i:s ', $r [Inputtime])}
Several often overlooked but useful tags in the PHP smarty template engine, including capture tags, config_load tags, php tags, strip tags, fetch tags, and how to use define-defined constants directly in Smarty templates , this article will analyze
Transferred from: Http://www.pinpointe.com/blog/email-campaign-html-and-css-supportToday, I wrote an HTML page nested in a message. It was a terrible toss. Many tags and CSS properties are not supported.Refer to the Nike Activity page:
Example of PHP implementing Word to HTML document2015-10-16 17:07 2751 People read Comments (2) favorite reports Word document is not suitable to put on the page, if we want to put on the page to be copied, if you are still in the copy out, the
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.