test1 Test2
In JS, you can use:
Test. innerhtml:
That is, all content from the starting position of the object to the ending position, including HTML tags.
In the preceding example, the value of test. innerhtml is " test1 Test2 ".
Please write PHP native code in {dede:sql} tag script!
{dede:sql sql= ' ... ' runphp= ' yes '}
echo ' Fuck ';
{/dede:sql}
How can I write php native code inside {dede:sql} tag script?
------Solution--------------------
Here are the PHP
PHP Acquisition Tool: Snoopy trial experience
?What is Snoopy? (Download
Snoopy)
Snoopy is a PHP class that mimics the functionality of a Web browser, which accomplishes the task of getting web content and sending forms.
Some features of Snoopy:
*
JS to set or get the value of the selection:①innerhtml: Property Sets or returns the HTML within the tag. That is, the entire contents of the object from its starting position to the terminating position, including the HTML tag.②outerhtml: Property
Forwarded from: http://blog.csdn.net/hzrandd/article/details/47128895Analytics and AnalyzersAnalysis is such a process:
First, characterize a text block as a separate word for inverted index (term)
These words are then standardized in
untitled document
On Error Resume Next
'
Server.ScriptTimeout = 999999
'========================================================
' Character encoding function
'====================================================
Function Bytestobstr (Body,code)
Get the current script URL
Copy Code code as follows:
function Get_php_url () {
if (!empty ($_server["Request_uri"])) {
$scriptName = $_server["Request_uri"];
$nowurl = $scriptName;
}else{
$scriptName = $_server["Php_self"];
if
Sometimes we need to get the title and content of the page, is a collection function, here to share a simple, convenient to need friends code as follows: function Getpagecontent ($url) { //$url = ' http://www.ttphp.com; $pageinfo = array (
A regular expression is a formula that matches a type of string in a pattern that consists of ordinary characters and some metacharacters (metacharacters). Ordinary characters include uppercase and lowercase letters and numbers, while metacharacters
A regular expression is a specification that can be used for pattern matching and substitution, and a regular expression is a literal pattern consisting of ordinary characters (such as characters A through Z) and special characters (metacharacters)
What is Snoopy? (Download Snoopy)Snoopy is a PHP class that mimics the functionality of a Web browser, which completes the task of getting web content and sending forms.Some features of Snoopy:* Easy to crawl the content of the Web page* Easy to
Example 1, PHP's own functions can remove/remove HTML tags/code in the string.Strip_tags (String,allow): Functions strip HTML, XML, and PHP tags.Parameters: String, required, specify the strings to be checked, allow, optional, specify the labels
Recently used in the project to Smarty, first summed up a few commonly used functions, in case of a rainy days. 1, Smarty cycle count: foreach (array_expression as $key => $value)From array_expression;item $value key $key.The Name property can be
1, Feature description: InnerHTML Sets or gets the HTML outerhtml setting or getting an object and its contents in the beginning and end tags of an object InnerText settings or Text Outertext settings (including labels) or get (excluding labels)
Under IE and opear, DOM objects support the InnerText property, which makes it easy to remove HTML tags.
However, the attribute is not supported in Firefox, but the DOM object under FF supports Textcontent, which is equivalent to innertext.
Demo
Recently studied the dream backstage, found some very useful tags to call the method, share to everyone ~ ~
Key description Call tag: --------------------------------------------------------------------------------Template path call tag:
Introduction to PHP Filter
The PHP filter is used to validate and filter data from unsecured sources, such as user input.
Copy Code code as follows:
Remove HTML tags, or remove coded special characters
Var_dump (Filter_var (" Chinese
I. Blog system Progress Review
On the blog introduced to the system has been implemented to the release and the front layout display, the next is to implement some, details page, message, Wheel Map management, the right blog statistics
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.