Added a test to verify we don't have a script being cut off part way though as in QueryPath #136.
#32 Fixed bug where character references were being encoded in style tags.