You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before updating to the latest version of HtmlSanitizer that uses AngleSharp, HtmlSanitizer was working in my application. After updating, however, calling Sanitize throws an exception. Here is how I'm using it (in an extension method):
public static string Sanitize(this string htmlString)
{
var sanitizer = new HtmlSanitizer();
return sanitizer.Sanitize(htmlString);
}
And here are the details:
System.MissingMethodException was unhandled by user code
HResult=-2146233069
Message=Method not found: 'System.String AngleSharp.IMarkupFormattable.ToHtml(AngleSharp.IMarkupFormatter)'.
Source=HtmlSanitizer
StackTrace:
at Ganss.XSS.HtmlSanitizer.Sanitize(String html, String baseUrl, IMarkupFormatter outputFormatter)
at Tcbcsl.Presentation.Helpers.ExtensionMethods.Sanitize(String htmlString) in C:\Users\Jay\Documents\GitHubVisualStudio\Tcbcsl\Presentation\Helpers\ExtensionMethods.cs:line 119
at lambda_method(Closure , NewsEditModel )
at AutoMapper.Internal.DelegateBasedResolver2.Resolve(ResolutionResult source) at AutoMapper.NullReferenceExceptionSwallowingResolver.Resolve(ResolutionResult source) at AutoMapper.PropertyMap.<>c.<ResolveValue>b__44_0(ResolutionResult current, IValueResolver resolver) at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1 source, TAccumulate seed, Func`3 func)
at AutoMapper.PropertyMap.ResolveValue(ResolutionContext context)
at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.MapPropertyValue(ResolutionContext context, Object mappedObject, PropertyMap propertyMap)
InnerException:
The text was updated successfully, but these errors were encountered:
@304NotModified I've left it as is for now, hoping that they won't change their API again for 1.x. Should this happen again, I'll require a specific version.
Before updating to the latest version of HtmlSanitizer that uses AngleSharp, HtmlSanitizer was working in my application. After updating, however, calling Sanitize throws an exception. Here is how I'm using it (in an extension method):
And here are the details:
System.MissingMethodException was unhandled by user code
HResult=-2146233069
Message=Method not found: 'System.String AngleSharp.IMarkupFormattable.ToHtml(AngleSharp.IMarkupFormatter)'.
Source=HtmlSanitizer
StackTrace:
at Ganss.XSS.HtmlSanitizer.Sanitize(String html, String baseUrl, IMarkupFormatter outputFormatter)
at Tcbcsl.Presentation.Helpers.ExtensionMethods.Sanitize(String htmlString) in C:\Users\Jay\Documents\GitHubVisualStudio\Tcbcsl\Presentation\Helpers\ExtensionMethods.cs:line 119
at lambda_method(Closure , NewsEditModel )
at AutoMapper.Internal.DelegateBasedResolver
2.Resolve(ResolutionResult source) at AutoMapper.NullReferenceExceptionSwallowingResolver.Resolve(ResolutionResult source) at AutoMapper.PropertyMap.<>c.<ResolveValue>b__44_0(ResolutionResult current, IValueResolver resolver) at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable
1 source, TAccumulate seed, Func`3 func)at AutoMapper.PropertyMap.ResolveValue(ResolutionContext context)
at AutoMapper.Mappers.TypeMapObjectMapperRegistry.PropertyMapMappingStrategy.MapPropertyValue(ResolutionContext context, Object mappedObject, PropertyMap propertyMap)
InnerException:
The text was updated successfully, but these errors were encountered: