i want to convert python string with bold, italic, different font size to html format

111 Views Asked by At

I want to convert python string with different charactersitics.

That python string might include bold, italic, different font size.

I used aspose.words. It worked well except the result always come out with red sign of that it is made with aspose.

I want to just change python string to html.

Substituing (like changing /n to '<-br->') can be an option in some cases, but i dont think it will work at different font size or bold.

The string would be like following

HTML (Hypertext Markup Language) is a markup language used to create webpages and web applications. It is a standard markup language used to structure and present content on the web.

Advantages of HTML:

  1. Easy to learn and use: HTML is a relatively simple language to learn and use. It can be easily understood by most web developers, even those with no prior coding experience.
  1. Cross-platform compatibility: HTML is compatible with all web browsers, allowing webpages to be viewed on any device.
  1. SEO friendly: HTML is search engine friendly, making it easier for search engines to index and rank websites.
  1. Accessibility: HTML provides accessibility features that make it easier for people with disabilities to access and interact with webpages.
  1. Low cost: HTML is free to use, making it a cost-effective option for web development.

This is just a example but i cant figure out how to change this :( Thanks

0

There are 0 best solutions below