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.