Code clean up + getContent function now accepts plain html instead of a url