Hello!
I have a page with multiple H1 headings followed by text and so on. Example:
<h1>Title 1</h1>Some text here
<h1>Title 2</h1>Some moretext here
<h1>Title 3</h1>Even more text here
etc
What I want to do is create an array of elements, that is explode the html using as separator <h1>ANY TEXT</h1>
above that I have in an $output variable.
The final purpose is to count the strlen of the text between the ending </h1>
and next starting <h1>
and if it's higher than 200 characters to hide it inside a with display:none so users can press "Show all" to unhide that.
How can I get that please?
Thanks!