Automatically escapes HTML content.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- Module
- ParallelModule
Syntax
public class EscapeHtml : ParallelModule, IModule, IParallelModule
Constructors
| Name | Summary |
|---|---|
| EscapeHtml |
Escapes HTML content with predefined escape sequences. |
Properties
| Name | Property Type | Summary |
|---|---|---|
| Parallel | bool |
Indicates whether documents will be
processed by this module in parallel.
Inherited from ParallelModule
|
Methods
| Name | Return Value | Summary |
|---|---|---|
| AfterExecution |
void |
Called after each module execution.
Inherited from Module
|
| AfterExecutionAsync |
Task |
Called after each module execution.
Inherited from Module
|
| BeforeExecution |
void |
Called before each module execution.
Inherited from Module
|
| BeforeExecutionAsync |
Task |
Called before each module execution.
Inherited from Module
|
| EscapeAllNonstandard |
EscapeHtml |
Escapes all nonstandard characters (standard characters are defined with the
WithDefaultStandard()
or WithStandard() methods).
|
| ExecuteAsync |
Task |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
Inherited from Module
|
| ExecuteContextAsync |
Task |
Executes the module once for all input documents.
Inherited from ParallelModule
|
| ExecuteInputAsync |
Task |
|
| Finally |
void |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
| FinallyAsync |
Task |
Called after each module execution, even if an exception is thrown during execution.
Inherited from Module
|
| WithDefaultStandard |
EscapeHtml |
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 |
EscapeHtml |
Defines additional characters to escape.
|
| WithStandard |
EscapeHtml |
Defines a custom set of standard characters to use with the
EscapeAllNonstandard() method.
|