Php filter deletion problems

Source: Internet
Author: User
Php filtering and deletion has a page with a previous incorrect syntax & nbsp; resulting in a lot of content & nbsp; not included in the tag. I want to delete all & nbsp; for example, 1111 & lt; a & nbsp; href # & gt; 2222 & lt; a & gt; 3333 delete & nbsp; 1111 and 3333 all content outside the tag & nbsp; there are many & nbsp; and there are no rules to ask if you have any php filter deletion problems
There is a page
A lot of content is not included in the tag due to incorrect syntax.
I want to delete all content not in the tag.
For example
111122223333
I want to delete all content of 1111 and 3333
There are many and irregular content outside the tag.
Is there any way?
------ Solution ----------------------
Add a span to the outside
111122223333

Var a = $ (". _ del"). find ();
$ (". _ Del" pai.html ();

The idea is like this. you can try it.

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: info-contact@alibabacloud.com 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.