- Edited
The function bellow add ads between paragraphs. I'm trying to make it to count a blockqoute
as a single paragraph, regardless of how many paragraphs are inside that blockqoute.
I wasn't able to find the implementation for this. Can anyone provide me a bit of help? I suspect that the hint is to use the DOMDocument() method, but i'm new to php and i don't know exactly how to do it.