wgnf / liz

liz (ˈlɪz) is a tool to extract license-information from your project/solution aimed on a fast and correct process. Whether it's via a dotnet-CLI-Tool, Cake-Addin or Nuke-Addon
MIT License
9 stars 0 forks source link

[FEAT]: Sanitize HTML from https://licenses.nuget.org/XXX #28

Open wgnf opened 2 years ago

wgnf commented 2 years ago

Description of the feature/enhancement

When using the License-Expression when publishing a NuGet-Package, the licenseUrl will most likely point to https://licenses.nuget.org/{expression}.

Downloading the raw license-text from that page however, will result in a HTML-Web-Page being returned, which contains the raw license-text for, i.e. the MIT license. It would be nice when the raw license-text would also just contain that license text, and not the full blown HTML-Site

Additional Information

A similar site that is often used is https://choosealicense.com/, github.com, https://opensource.org/ and others

wgnf commented 2 years ago

Maybe this has to be done on a per site basis, a catch-all might be pretty hard to implement