Added some methods to HtmlUtils and LibraryService