How about introducing some client side javascript to remove "p" (or
any element of your choice) within the scope of a specific element?
Display your content within an element with some custom class name,
let's assume a class name "sans-p"
for example (freemarker):
<div class='sans-p'>
<@hst.html hippohtml=dcument.content>
</div>
will produce the following content output,
<div class='sans-p'>
<p>foo</p>
</div>
Add some JQuery on document ready(like below) to find and replace all
"p" within class "sans-p"
$('.sans-p p').replaceWith
(
function() { return $(this).contents(); }
);
Mahesh R. ACHARYA
Solution Architect | Mobile:
781-640-5559 | Email:
m.ac...@onehippo.com
Boston - 71 Summer Street, Boston, MA 02110