SafeMarkup deprecated
class SafeMarkup (View source)
deprecated
Contains deprecated functionality related to sanitization of markup.
Methods
Checks if a string is safe to output.
Encodes special characters in a plain-text string for display as HTML.
Formats a string for HTML display by replacing variable placeholders.
Details
static bool
isSafe(string|MarkupInterface $string, string $strategy = 'html')
deprecated
deprecated
Checks if a string is safe to output.
static HtmlEscapedText
checkPlain(string $text)
deprecated
deprecated
Encodes special characters in a plain-text string for display as HTML.
Also validates strings as UTF-8. All processed strings are also automatically flagged as safe markup strings for rendering.
static string|MarkupInterface
format(string $string, array $args)
deprecated
deprecated
Formats a string for HTML display by replacing variable placeholders.