I get an exception The entity “nbsp” was referenced, but not declared
when parsing valid HTML that contains the  
entity (which makes it invalid XML; I do not control the server) while unmarshalling a HttpEntity
into a NodeSeq
with spray.httpx.unmarshalling.BasicUnmarshallers.NodeSeqUnmarshaller
.
I can probably preprocess the HTML to remove  
, but what is the accepted method for parsing HTML (with  
) with Spray?
You might try to write a Custom Unmarshaller that wraps JSoup.