Christ Akkermans

Results 12 comments of Christ Akkermans

This is a valid request, but unfortunately I believe this is currently not so easy to implement. One method would be to implement this handling in a dedicated virtual method,...

A solution based on `Char.IsWhiteSpace()`, which backs `String.IsNulOrWhiteSpace`, might work if it is an option. I however found some detailed documentation at MDN https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Whitespace which suggest things are not that...

Hi David, Do you really need strong naming? https://stackoverflow.com/questions/16447324/do-visual-studio-extensions-vsix-need-to-be-strong-named I have had some mixed experiences with using strong named assemblies in situations where there were version conflicts. JSON.NET was an...

The primary difference with HtmlSanitizer is indeed the HTML parser being used in the background. The Html Agility Pack was not really maintained for some time in history, but is...

Hi @dca00, I think you are looking for flattening. HtmlRuleSanitizer is a whitelisting sanitizer, so anything it does not know will be removed by default. By specifying the `html` and...

Do note that the `HtmlSanitizer.SimpleHtml5DocumentSanitizer()` helper method was created exactly for this purpose; it allows full documents including the `html` and `body` tag. Also the `div` tag is included to...

@larikitty, @mariomic-maker, @d-lan1, @birazdhliw, I wanted to check if you are still facing this issue with version 3.0? If so, what version of ASP.NET Core are you using?

Hi @NatalGi, I was a bit puzzled by your question; it looks wrong, but the resulting HTML seems to work fine when I test it in a browser and inspect...

I did find an option `HtmlDocument.OptionWriteEmptyNodes` on the backing HTML parser, which when set to `true` will make the output of your sample looks as follows: ```Tekst``` This output looks...

Hi @NatalGi, I looked a bit further into the issue you reported. I suspect that this might be an issue with the HTML parser I used for the sanitizer. I...