IStringSanitizerΒΆ

interface IStringSanitizer

An interface which provides mechanisms to sanitize text input.

string SanitizeCharacters(SpriteFont font, string text)

Sanitizes the specified text such that it can be rendered with the specified font.

Parameters:
  • font (Microsoft.Xna.Framework.Graphics.SpriteFont) – The font that will render or measure the text.
  • text (string) – The text to sanitize.
Returns:

The text containing only characters that the font can render.