Dangl.TextConverter
1.2.8
Prefix Reserved
See the version list below for details.
dotnet add package Dangl.TextConverter --version 1.2.8
NuGet\Install-Package Dangl.TextConverter -Version 1.2.8
<PackageReference Include="Dangl.TextConverter" Version="1.2.8" />
paket add Dangl.TextConverter --version 1.2.8
#r "nuget: Dangl.TextConverter, 1.2.8"
// Install Dangl.TextConverter as a Cake Addin #addin nuget:?package=Dangl.TextConverter&version=1.2.8 // Install Dangl.TextConverter as a Cake Tool #tool nuget:?package=Dangl.TextConverter&version=1.2.8
Library to transform Rtf and Html to plain text and vice versa
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Antlr4.Runtime (>= 4.6.6)
- HtmlAgilityPack (>= 1.11.7)
-
.NETStandard 1.3
- Antlr4.Runtime (>= 4.6.6)
- HtmlAgilityPack (>= 1.11.7)
- NETStandard.Library (>= 1.6.1)
- System.Text.Encoding.CodePages (>= 4.5.0)
-
.NETStandard 2.0
- Antlr4.Runtime (>= 4.6.6)
- HtmlAgilityPack (>= 1.11.7)
- System.Text.Encoding.CodePages (>= 4.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dangl.TextConverter:
Package | Downloads |
---|---|
Dangl.TextConverter.RtfImageConversion
Library to transform Rtf and Html to plain text and vice versa |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.4 | 43,011 | 12/12/2023 |
3.0.3 | 10,606 | 11/27/2023 |
3.0.2 | 7,396 | 9/22/2023 |
3.0.1 | 20,373 | 3/16/2023 |
3.0.0 | 3,906 | 1/4/2023 |
2.1.0 | 6,872 | 11/28/2022 |
2.0.0 | 20,380 | 6/25/2022 |
1.3.9 | 18,561 | 1/20/2022 |
1.3.8 | 10,065 | 8/9/2021 |
1.3.7 | 15,214 | 5/10/2021 |
1.3.6 | 12,572 | 12/26/2020 |
1.3.5 | 1,757 | 12/7/2020 |
1.3.4 | 3,367 | 10/6/2020 |
1.3.3 | 9,176 | 7/7/2020 |
1.3.2 | 3,461 | 2/29/2020 |
1.3.1 | 10,167 | 11/21/2019 |
1.3.0 | 12,577 | 8/5/2019 |
1.2.9 | 767 | 7/24/2019 |
1.2.8 | 1,549 | 6/19/2019 |
1.2.7 | 826 | 5/21/2019 |
1.2.6 | 1,160 | 3/29/2019 |
1.2.5 | 2,577 | 3/18/2019 |
1.2.4 | 700 | 3/13/2019 |
1.2.3 | 3,646 | 12/28/2018 |
1.2.2 | 909 | 12/11/2018 |
1.2.1 | 841 | 12/8/2018 |
1.2.0 | 813 | 12/8/2018 |
1.1.5 | 859 | 11/29/2018 |
1.1.4 | 1,263 | 9/20/2018 |
1.1.3 | 1,001 | 7/26/2018 |
1.1.2 | 1,335 | 5/31/2018 |
1.1.1 | 1,075 | 5/28/2018 |
1.1.0 | 1,190 | 4/11/2018 |
1.0.8 | 1,266 | 3/19/2018 |
1.0.7 | 1,258 | 1/10/2018 |
1.0.6 | 1,083 | 1/8/2018 |
1.0.5 | 1,106 | 12/27/2017 |
1.0.4 | 1,067 | 12/15/2017 |
1.0.3 | 1,176 | 12/11/2017 |
1.0.2 | 1,202 | 8/11/2017 |
1.0.1 | 1,461 | 12/5/2016 |
1.0.0 | 1,147 | 9/29/2016 |
## v1.2.8:
- Bugfix where bookmark elements in Rtf texts with missing closing elements where throwing a `System.InvalidOperationException`
- CI tests are now also run on Linux
- Bugfix where line endings were sometimes not correctly trimmed when running on .NET Core on Linux
## v1.2.7:
- Non-printable unicode escape sequences (`0x00` - `0x08`, `0x0b` and `0x0e` - `0x1f`) are now ignored when converting RTF text to plain text
## v1.2.6:
- Add the `HtmlAgilityPackLegacyBehaviorHelper` utility class and fix an issue were enabling the legacy behavior in HtmlAgilityPack was not thread safe and could fail when simultaneously accessed
## v1.2.5:
- Update **HtmlAgilityPack** dependency. The previously referenced version `1.9.2` was pulled from NuGet due to an unintended, breaking API change. Please see https://github.com/zzzprojects/html-agility-pack/issues/125 for more information about the change
- The `HtmlToText` class now sets the static property `HtmlAgilityPack.HtmlDocument.DisableBehavaiorTagP = false` in its static method calls to ensure compatible behavior. If your own code relies on different behavior, please ensure that this property is always set to its original value after invoking one of the methods on `HtmlToText`. See the README for further details
## v1.2.4:
- Dependencies update
## v1.2.3.:
- Small internal refactoring
- Dependencies update
## 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