Apache POI Excel text formatting through XSSFRichTexString and Jsoup
问题 I was getting the html data from database. Below is the example : <ul> <li> <strong>Iam Bold </strong> <u><span style="color:Red">Iam Red Colored and Underlined</span> </u> </li> <li> Just a Normal Text </li> <li> Iam <b> Bold </b> <i><span style="color:Green"> and italic with colored </span></i> <u> and underlined </u> </li> </ul> Now the same formatting is to be there in my excel output. Please see the below image for excel output. I know that by using Jsoup , you can parse the above html