Pyro

A scripting language for people who enjoy the simpler things in life.

Version 0.9.35

std::html


This module contains utility functions for working with HTML.

Functions

esc_attr(text: str) -> str

Returns the new string formed by replacing HTML syntax characters in text with their corresponding character entities.

Escapes the characters <, >, &, ", and '.

The returned string can be safely used inside HTML attributes.

esc_html(text: str) -> str

Returns the new string formed by replacing HTML syntax characters in text with their corresponding character entities.

Escapes the characters <, >, and &.

The returned string can be safely used inside HTML tags.