I am trying to use HTMLPurifier to transform HTML by adding class attributes to paragraphs.
For example, for this input HTML:
<p>This is a paragraph</p>
<p>Another one</p>
This would be the output:
<p class="myclass">This is a paragraph</p>
<p class="myclass">Another one</p>
I read the doc and some forum post on that site but i could not figure it out how exactly I should do it?
Thanks in advance.