mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-31 06:35:03 +01:00
XMLWriter: removed unnecessary apostrophe escaping (&apos)
This commit is contained in:
parent
ba1049bc5b
commit
47f6ba60ab
@ -353,7 +353,6 @@ private:
|
||||
std::string _indent;
|
||||
|
||||
static const std::string MARKUP_QUOTENC;
|
||||
static const std::string MARKUP_APOSENC;
|
||||
static const std::string MARKUP_AMPENC;
|
||||
static const std::string MARKUP_LTENC;
|
||||
static const std::string MARKUP_GTENC;
|
||||
|
@ -52,7 +52,6 @@ const std::string XMLWriter::NEWLINE_CR = "\r";
|
||||
const std::string XMLWriter::NEWLINE_CRLF = "\r\n";
|
||||
const std::string XMLWriter::NEWLINE_LF = "\n";
|
||||
const std::string XMLWriter::MARKUP_QUOTENC = """;
|
||||
const std::string XMLWriter::MARKUP_APOSENC = "'";
|
||||
const std::string XMLWriter::MARKUP_AMPENC = "&";
|
||||
const std::string XMLWriter::MARKUP_LTENC = "<";
|
||||
const std::string XMLWriter::MARKUP_GTENC = ">";
|
||||
@ -343,7 +342,6 @@ void XMLWriter::characters(const XMLChar ch[], int start, int length)
|
||||
switch (c)
|
||||
{
|
||||
case '"': writeMarkup(MARKUP_QUOTENC); break;
|
||||
case '\'': writeMarkup(MARKUP_APOSENC); break;
|
||||
case '&': writeMarkup(MARKUP_AMPENC); break;
|
||||
case '<': writeMarkup(MARKUP_LTENC); break;
|
||||
case '>': writeMarkup(MARKUP_GTENC); break;
|
||||
@ -787,7 +785,6 @@ void XMLWriter::writeAttributes(const AttributeMap& attributeMap)
|
||||
switch (c)
|
||||
{
|
||||
case '"': writeMarkup(MARKUP_QUOTENC); break;
|
||||
case '\'': writeMarkup(MARKUP_APOSENC); break;
|
||||
case '&': writeMarkup(MARKUP_AMPENC); break;
|
||||
case '<': writeMarkup(MARKUP_LTENC); break;
|
||||
case '>': writeMarkup(MARKUP_GTENC); break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user