How to clean up some unwanted HTML attributes in crawler data

for example, for the following data

<p id="a">data

I just want to keep

data

is there a quick way to do this?


idea:
1 get the current element name,p
2 get the current element text,data
3 assemble into < element_name > text < / element_name >

Menu