Added class method for creating an attributed string from html string.

Change-Id: Ibf2a29e138dcd7ea7195438f77d4e3b8ca8db940