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);
» more...

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

dom::Value
safeString(dom::Value const& str);
» more...

Return a DOM string ensuring special characters are escaped.

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

Return Value

  • The safe string wrapper
  • dom::Value containing the safe string.

Parameters

NameDescription
strThe string to mark as safe

See Also

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