HtmlEscape Class

Summary

Automatically escapes HTML content.
Assembly
Wyam.Html.dll
Namespace
Wyam.Html
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IModule"] click Interface0 "/api/Wyam.Common.Modules/IModule" Type["HtmlEscape"] class Type type-node

Syntax

public class HtmlEscape : IModule

Constructors

Name Summary
HtmlEscape() Escapes HTML content with predefined escape sequences.

Methods

Name Value Summary
EscapeAllNonstandard() HtmlEscape
Escapes all nonstandard characters (standard characters are defined with the WithDefaultStandard() or WithStandard() methods).
Execute(IReadOnlyList<IDocument>, IExecutionContext) IEnumerable<IDocument>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
WithDefaultStandard() HtmlEscape
Defines a standard set of characters as 0-9, a-z, A-Z, newlines, and space. Use with the EscapeAllNonstandard() method to whitelist this default set of characters.
WithEscapedChar(char[]) HtmlEscape
Defines additional characters to escape.
WithStandard(char[]) HtmlEscape
Defines a custom set of standard characters to use with the EscapeAllNonstandard() method.
GitHub