mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
85503ec1b9
commit
5d9bfe9ccc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user