Phlex.SGML.SafeValue (phlex v0.3.0)

Copy Markdown View Source

A wrapper for string values that are marked as safe for HTML output.

Example

safe_value = Phlex.SGML.SafeValue.new("<strong>Hello</strong>")
Phlex.SGML.append_raw(state, safe_value)

Summary

Functions

Creates a new SafeValue from a string.

Functions

new(content)

Creates a new SafeValue from a string.