in reply to Help with HTML::Element->splice_content

First, let's get clear on what you mean: do you want to get rid of white space or the non-breaking space entities?

Regardless of which it is, the HTML::TreeBuilder objectify_text method will probably be of use.