Module encoding.html stdlib

encoding.html
Version:
0.3.3
License:
MIT
Dependencies from vmod:
0
Imports:
0
Imported by:
1
Repository:
OS-specific
Show selected OS-specific symbols.
Backend-specific
Show selected Backend-specific symbols.

Dependencies defined in v.mod

This section is empty.

Imports

This section is empty.

Imported by

  • Standard Library

Aliases

This section is empty.

Constants

This section is empty.

Sum types

This section is empty.

Functions

#fn escape

fn escape(input string, config EscapeConfig) string

escape converts special characters in the input, specifically "<", ">", and "&" to HTML-safe sequences. If quote is set to true (which is default), quotes in HTML will also be translated. Both double and single quotes will be affected.

Note: escape() supports funky accents by doing nothing about them. V's UTF-8 support through string is robust enough to deal with these cases.

Structs

#struct EscapeConfig

params
pub struct EscapeConfig {
	quote bool = true
}

Interfaces

This section is empty.

Enums

This section is empty.