T
T
Tokenchik2017-01-25 10:56:28
PHP
Tokenchik, 2017-01-25 10:56:28

How to get all html tags and text between them using simple html dom library?

It is necessary to get the tags and the content between them from the page, but the tags must not have attributes, i.e. clean , etc. As an example: At the output, you need to get<a>, <div>
<div class="example" width="150px">Пример</div>
<div>Пример</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tokenchik, 2017-01-26
@Tokenchik

The answer is banal to the point of madness, we get everything inside, this is the result I was trying to achieve.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question