fixes #4 by changing the way html is replaced