HTML escaping for docstrings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31977 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-14 14:16:15 +00:00
parent 85503ec1b9
commit 5d9bfe9ccc

View File

@ -65,9 +65,14 @@ docstring escapeChar(char_type c)
}
// FIXME do something here.
// escape what needs escaping
docstring htmlize(docstring const & str) {
return str;
odocstringstream d;
docstring::const_iterator it = str.begin();
docstring::const_iterator en = str.end();
for (; it != en; ++it)
d << escapeChar(*it);
return d.str();
}
// FIXME This needs to be protected somehow.