Updated the ConvertHTMLToText function to properly parse and convert both ordered and unordered lists to plain text.
Split utility functions into separate files.