Answer the question
In order to leave comments, you need to log in
PHP - how to turn an HTML string with tags into a regular string?
There are ips, but they are veiled with a bunch of random spans, divs and all sorts of other garbage. It is necessary to isolate the ip itself without the rest of the garbage.
Answer the question
In order to leave comments, you need to log in
1) get a collection of elements by splitting on the BR tag
2) for each element do window.getComputedStyle(elem)
3) check display:none, visibility:hidden, opacity:0, position:absolute/fixed etc to filter out garbage
Google towards php simple html dom , namely you want the plaintext of the entire page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question