|
Than Ngo |
5e50ad |
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
index 99d6fdd..d8913e1 100644
|
|
Than Ngo |
5e50ad |
--- a/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
+++ b/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
@@ -1902,6 +1902,8 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str)
|
|
Than Ngo |
5e50ad |
{
|
|
Than Ngo |
5e50ad |
case '&': m_t << "&"; break;
|
|
Than Ngo |
5e50ad |
case '"': m_t << """; break;
|
|
Than Ngo |
5e50ad |
+ case '<': m_t << "<"; break;
|
|
Than Ngo |
5e50ad |
+ case '>': m_t << ">"; break;
|
|
Than Ngo |
5e50ad |
// For SGML compliance, and given the SGML declaration for HTML syntax,
|
|
Than Ngo |
5e50ad |
// it's enough to replace these two, provided that the declaration
|
|
Than Ngo |
5e50ad |
// for the HTML version we generate (and as supported by the browser)
|
|
Than Ngo |
5e50ad |
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
index d8913e1..0ce4030 100644
|
|
Than Ngo |
5e50ad |
--- a/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
+++ b/src/htmldocvisitor.cpp
|
|
Than Ngo |
5e50ad |
@@ -1904,24 +1904,6 @@ void HtmlDocVisitor::filterQuotedCdataAttr(const char* str)
|
|
Than Ngo |
5e50ad |
case '"': m_t << """; break;
|
|
Than Ngo |
5e50ad |
case '<': m_t << "<"; break;
|
|
Than Ngo |
5e50ad |
case '>': m_t << ">"; break;
|
|
Than Ngo |
5e50ad |
- // For SGML compliance, and given the SGML declaration for HTML syntax,
|
|
Than Ngo |
5e50ad |
- // it's enough to replace these two, provided that the declaration
|
|
Than Ngo |
5e50ad |
- // for the HTML version we generate (and as supported by the browser)
|
|
Than Ngo |
5e50ad |
- // specifies that all the other symbols used in rawVal are
|
|
Than Ngo |
5e50ad |
- // within the right character class (i.e., they're not
|
|
Than Ngo |
5e50ad |
- // some multinational weird characters not in the BASESET).
|
|
Than Ngo |
5e50ad |
- // We assume that 1) the browser will support whatever is remaining
|
|
Than Ngo |
5e50ad |
- // in the formula and 2) the TeX formulae are generally governed
|
|
Than Ngo |
5e50ad |
- // by even stricter character restrictions so it should be enough.
|
|
Than Ngo |
5e50ad |
- //
|
|
Than Ngo |
5e50ad |
- // On some incompliant browsers, additional translation of
|
|
Than Ngo |
5e50ad |
- // '>' and '<' into ">" and "<", respectively, might be needed;
|
|
Than Ngo |
5e50ad |
- // but I'm unaware of particular modern (last 4 years) versions
|
|
Than Ngo |
5e50ad |
- // with such problems, so let's not do it for performance.
|
|
Than Ngo |
5e50ad |
- // Also, some brousers will (wrongly) not process the entity references
|
|
Than Ngo |
5e50ad |
- // inside the attribute value and show the &...; form instead,
|
|
Than Ngo |
5e50ad |
- // so we won't create entites unless necessary to minimize clutter there.
|
|
Than Ngo |
5e50ad |
- // --vassilii
|
|
Than Ngo |
5e50ad |
default: m_t << c;
|
|
Than Ngo |
5e50ad |
}
|
|
Than Ngo |
5e50ad |
}
|