Dangl.TextConverter 1.2.2

Library to transform Rtf and Html to plain text and vice versa

Install-Package Dangl.TextConverter -Version 1.2.2
dotnet add package Dangl.TextConverter --version 1.2.2
paket add Dangl.TextConverter --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

## v1.2.2:
- Add `bool keepWhitespaceAtLineEnds` parameter to `TextToHtml.TransformPlaintextToHtml()` overload which defaults to false
- Bugfix where Rtf text was sometimes incorrectly read and output when segments between groups started with whitespace

## v1.2.1:
- Add `StringLineStartNormalizationExtensions`

## v1.2.0:
- Update `HtmlAgilityPack` for huge (about 10x) performance improvements in `netstandard` targets, see https://github.com/zzzprojects/html-agility-pack/releases/tag/v1.8.11
- When converting Html to plain text, it's now possible to have the result split by Html class names. Please see the README or https://docs.dangl-it.com/Projects/Dangl.TextConverter for further details
- `public static SegmentedRtf ConvertRtfToSegmentedText(string rtfInput)` was added to `RtfToText`. This will return text segments that contain plain text representations of the texts as well as tags to indicate the opening and closing of bookmarks. This is used, for example, in the [**GAEB & AVA .Net Libraries** by Dangl**IT**](https://www.dangl-it.com/products/gaeb-ava-net-library/) to work with text additions in GAEB 2000 files. Please see the README or https://docs.dangl-it.com/Projects/Dangl.TextConverter for further details
- Added `TextToRtf.ConvertPlainTextToRtf(SegmentedRtf segmentedRtf)` to convert back to Rtf from segmented texts while preserving bookmarks
- Dropped tests for `netcoreapp2.0`, added tests for `netcoreapp2.2`

## v1.1.5:
- Bugfix: Some empty tables caused a `NullReferenceException` when converting them to plaintext via the `HtmlToText` class
- Update of `HtmlAgilityPack` and `System.Text.Encoding.CodePages` (the latter only for `netstandard` targets)

## v1.1.4:
- Dependencies update

## v1.1.3:
- Update of HtmlAgilityPack dependency to include latest bugfixes
- Internal refactoring of the CI/CD pipeline

## v1.1.2:
- Small performance improvements for parsing Rtf text

## v1.1.1:
- Update HtmlAgilityPack to latest stable version 1.8.4

## v1.1.0:
- Switch to HtmlAgilityPack. The HtmlAgilityPack.Core fork is no longer required since the original supports now netstandard

## v1.0.8
- Add `netstandard2.0` target
- Switch build system to NUKE

## v1.0.7
- Fix bug in RtfToText where Rtf annotations were read as plain text

## v1.0.6
- Performance improvements for Rtf texts that contain pictures

## v1.0.5
- Update Html encoding/decoding to preserve correctness in roundtrip scenarios
     
## v1.0.4
- Downgrade to netstandard1.3 and net45 for broader compatibility

## v1.0.3
- Performance improvements

## v1.0.2
- Update ANTLR4 dependencies to latest stable version

## v1.0.1
- Target NETStandard 1.3

Version History

Version Downloads Last updated
1.2.2 6 12/11/2018
1.2.1 21 12/8/2018
1.2.0 19 12/8/2018
1.1.5 65 11/29/2018
1.1.4 231 9/20/2018
1.1.3 151 7/26/2018
1.1.2 155 5/31/2018
1.1.1 104 5/28/2018
1.1.0 148 4/11/2018
1.0.8 377 3/19/2018
1.0.7 310 1/10/2018
1.0.6 122 1/8/2018
1.0.5 126 12/27/2017
1.0.4 124 12/15/2017
1.0.3 162 12/11/2017
1.0.2 216 8/11/2017
1.0.1 472 12/5/2016
1.0.0 245 9/29/2016