Html escaping for security: howto in D?

Kagamin spam at here.lot
Wed Jul 8 05:29:16 UTC 2020


On Tuesday, 7 July 2020 at 20:10:14 UTC, aberba wrote:
> unittest
> {
> 	assert(stripTags("<html><b>bold</b></html>") == "bold");
> 	assert(stripTags("<html><b>bold</b></html>", ["<html>"]) == 
> "<html>bold</html>");
> }

Meh, skype strips tags and it's infuriating, basically any text 
that contains < or > disappears.


More information about the Digitalmars-d mailing list