B
B
banny_name2015-09-25 16:11:43
PHP
banny_name, 2015-09-25 16:11:43

How to find out everything between the tags?

There is html code

{% open %}
    %code%
{% close %}

What is the correct way to find out what is between '{% open %}' and '{% close %}' ?
Regular or DOMDocument or generally implement Stack ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Inchin ☢, 2015-09-25
@In4in

If you labeled HTML elements in such a strange way, then look away phpQuery or SimpleDOM , otherwise you'll need regular expressions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question