Welcome! » Log In » Create A New Profile

Replace tag by text node

Posted by IvanV 
IvanV
Replace tag by text node
May 11, 2016 01:50PM

Hello.

I'm trying to replace paragraph with new lines. I found that I can replace tag easy with HTMLPurifier_TagTransform_Simple but can't find a way to replace p tag with its innerHTML + \n

Could anyone point me to right direction?

Thanks for help&

Re: Replace tag by text node
May 11, 2016 02:05PM

Maybe an injector would work? This is not exactly HTML Purifier's forte though.

Sorry, you do not have permission to post/reply in this forum.