10 references to ForbidChar
System.Text.Encodings.Web (10)
System\Text\Encodings\Web\AllowedBmpCodePointsBitmap.cs (6)
49
ForbidChar
('<');
50
ForbidChar
('>');
51
ForbidChar
('&');
52
ForbidChar
('\''); // can be used to escape attributes
53
ForbidChar
('\"'); // can be used to escape attributes
54
ForbidChar
('+'); // technically not HTML-specific, but can be used to perform UTF7-based attacks
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
68
_allowedBmpCodePoints.
ForbidChar
(ch);
System\Text\Encodings\Web\TextEncoderSettings.cs (3)
144
_allowedCodePointsBitmap.
ForbidChar
(character);
159
_allowedCodePointsBitmap.
ForbidChar
(characters[i]);
179
_allowedCodePointsBitmap.
ForbidChar
((char)codePoint);