Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
XMLEscape.h File Reference
#include <optional>
#include <string_view>
#include "donner/base/RcString.h"
Include dependency graph for XMLEscape.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::xml
 XML parsing and document model support, top-level objects are donner::xml::XMLParser and donner::xml::XMLDocument.

Functions

std::optional< RcStringdonner::xml::EscapeAttributeValue (std::string_view value, char quoteChar='"')
 Escape a string for use as an XML attribute value, producing text that round-trips through donner::xml::XMLParser::Parse to recover the original bytes.
std::optional< RcStringdonner::xml::EscapeTextContent (std::string_view value)
 Escape a string for use as XML element text content (character data), producing text that round-trips through donner::xml::XMLParser::Parse to recover the original bytes.