JSanitizer NuGet Library

Configurable sanitizer for XML and JSON string value through extension method.

NuGet: https://www.nuget.org/packages/JSanitizer/

Features:

1. Default sanitizer to replace password value
2. Sanitize with options

Requirements:

  1. .NET Core 3.1
  2. Visual Studio or VS Code

How to use:

  1. Go to Tools and select Manage Nuget Packages and Search for JSanitizer library.
  2. OR Install-Package JSanitizer -Version 1.0.2

Extension:

  1. {json string value}.SanitizeJsonValue()
  2. {xml string value}.SanitizeXmlValue()
  3. {xml string value}.SanitizeXmlWithOptions(options)
  4. {json string value}.SanitizeJsonWithOptions(options)

Code implementations:

  1. Sanitize without options

2. Sanitize with options

Note: If you encounter error, please follow screenshot below:

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store