[TYPO3-dev] parseFunc: remove tag and including content possible?

Steffen Kamper info at sk-typo3.de
Fri Dec 12 18:53:30 CET 2008


Hi Franz,

Franz Koch schrieb:
> Hi,
> 
> I'm trying now for hours to only allow certain tags inside a specific 
> container. I want to eliminate every other tag including their content.
> 
> In detail I'd like to get clean DL and inside the DL-tag only DT and DD 
> should be allowed. Everything else should be removed. Inside the DT and 
> DD is all allowed again (to keep it a bit simpler).
> 
> Is it even possible to remove tags and their content with parseFunc and 
> HTMLparser? If not - might it be a useful feature in your eyes?
> 

to be honest the whole HTMLparse needs a refactor. Many things are 
hardcoded, and it should work with definable rules like in your case
container {dl} allowedElements {dt,dd}
container {dd} allowedElements {all}
etc

vg Steffen




More information about the TYPO3-dev mailing list