Changed $parse to use htmlString argument

Added test for $parse

Fixes #6