mrdocs::safeString

safeString overloads

Synopses

Declared in <mrdocs/Dom/Value.hpp>

Create a wrapper for a safe string.

dom::Value
safeString(std::string_view str);

Mark an existing string‐like value as safe to emit without escaping.

Return a DOM string ensuring special characters are escaped.

template<std::convertible_to<std::string_view> SV>
dom::Value
safeString(SV const& str);

Return Value

  • The safe string wrapper

  • dom::Value containing the safe string.

Parameters

Name

Description

str

The string to mark as safe

See Also

https://handlebarsjs.com/api‐reference/utilities.html#handlebars‐safestring‐string

Created with MrDocs