summaryrefslogtreecommitdiffstats
path: root/src/textdocvisitor.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-07-19 13:04:41 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2007-07-19 13:04:41 (GMT)
commit687fe7a1487c68f0c6b4ef7d169b23ff274ab9ca (patch)
tree7c115c97f09109f537a6eb50b9baa3c0cd91d07d /src/textdocvisitor.cpp
parent34ca582041237fd0b2c91b58afd2a39dc91cf0a8 (diff)
downloadDoxygen-687fe7a1487c68f0c6b4ef7d169b23ff274ab9ca.zip
Doxygen-687fe7a1487c68f0c6b4ef7d169b23ff274ab9ca.tar.gz
Doxygen-687fe7a1487c68f0c6b4ef7d169b23ff274ab9ca.tar.bz2
Release-1.5.2-20070719
Diffstat (limited to 'src/textdocvisitor.cpp')
-rw-r--r--src/textdocvisitor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/textdocvisitor.cpp b/src/textdocvisitor.cpp
index fe5573b..9e5cd21 100644
--- a/src/textdocvisitor.cpp
+++ b/src/textdocvisitor.cpp
@@ -71,8 +71,13 @@ void TextDocVisitor::filter(const char *str)
c=*p++;
switch(c)
{
- case '\n': m_t << " "; break;
- default: m_t << c;
+ case '\n': m_t << " "; break;
+ case '"': m_t << "&quot;"; break;
+ case '\'': m_t << "&apos;"; break;
+ case '<': m_t << "&lt;"; break;
+ case '>': m_t << "&gt;"; break;
+ case '&': m_t << "&amp;"; break;
+ default: m_t << c;
}
}
}