Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
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.

Functions

std::optional< RcString > donner::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< RcString > donner::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.