C# typography prettifier tool for web texts, HTML support
– .NET Standard 2.0
Install-Package TextPrettifier
TextPrettifier prettifier = new TextPrettifier();
Console.WriteLine(prettifier.PrettifyForWeb(@"
A long time ago, in a galaxy far,far away...
It is a period of civil war. Rebel
spaceships, <span title='this is a popular quote' style='font-weight: bold'>striking from a hidden
base</span>, have won their first victory
against the evil Galactic Empire.
Price: 128 credits"));
A long time ago, in a galaxy far, far away...
It is a period of civil war. Rebel
spaceships, <span title='this is a popular quote' style='font-weight: bold'>striking from a hidden
base</span>, have won their first victory
against the evil Galactic Empire.
Price: 128 credits
--
–
Hello world
Hello world
Hello,world
Hello, world
striking from a hidden
striking from a hidden
Price: 128 credits
Price: 128 credits
Going on a bus
Going on a bus
Perpetuum Mobile — Myth
Perpetuum Mobile — Myth
striking from a hidden <span style=\"width: 3px\" title=\"not a big deal\">striking from a hidden</span>
striking from a hidden <span style=\"width: 3px\" title=\"not a big deal\">striking from a hidden</span>
- 2020.2.1
- longer text and base64 images wont break the parser
- 2020.1.1
- handle HTML tags correctly
- Test