added: htmltextstream escapes more characters now:
added characters:
" -> &#quot;
' -> ' (' but IE8 has a problem with ')
10 ->
13 ->
added: two ezc filters:
fil_html_quote
" -> &#quot;
' -> ' (' but IE8 has a problem with ')
fil_html_newline
10 ->
13 ->
changed: fun_subject.html uses <div class="winix_input_a"> now
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@959 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -154,6 +154,47 @@ void fil_new_line_to_br(Info & i)
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* " -> &#quot;
|
||||
* ' -> ' (' but IE8 has a problem with ')
|
||||
*/
|
||||
void fil_html_quote(Info & i)
|
||||
{
|
||||
const std::wstring & str = i.in.Str();
|
||||
|
||||
for(size_t a=0 ; a<str.size() ; ++a)
|
||||
{
|
||||
if( str[a] == '\"' )
|
||||
i.out << R(""");
|
||||
else
|
||||
if( str[a] == '\'' )
|
||||
i.out << R("'");
|
||||
else
|
||||
i.out << R(str[a]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* 10 ->
|
||||
* 13 ->
|
||||
*/
|
||||
void fil_html_newline(Info & i)
|
||||
{
|
||||
const std::wstring & str = i.in.Str();
|
||||
|
||||
for(size_t a=0 ; a<str.size() ; ++a)
|
||||
{
|
||||
if( str[a] == 10 )
|
||||
i.out << R(" ");
|
||||
else
|
||||
if( str[a] == 13 )
|
||||
i.out << R(" ");
|
||||
else
|
||||
i.out << R(str[a]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user