Commit ab13375e authored by Stephan Kreutzer's avatar Stephan Kreutzer

Example improved.

parent 48629551
/* Copyright (C) 2017-2018 Stephan Kreutzer
/* Copyright (C) 2017-2019 Stephan Kreutzer
*
* This file is part of CppRStAX.
*
......@@ -35,7 +35,7 @@ int Run(std::istream& aStream);
int main(int argc, char* argv[])
{
std::cout << "CppRStAX Copyright (C) 2017-2018 Stephan Kreutzer\n"
std::cout << "CppRStAX Copyright (C) 2017-2019 Stephan Kreutzer\n"
<< "This program comes with ABSOLUTELY NO WARRANTY.\n"
<< "This is free software, and you are welcome to redistribute it\n"
<< "under certain conditions. See the GNU Affero General Public License 3\n"
......@@ -163,6 +163,15 @@ int Run(std::istream& aStream)
case '\"':
strTag += "&quot;";
break;
case '&':
strTag += "&amp;";
break;
case '<':
strTag += "&lt;";
break;
case '>':
strTag += "&gt;";
break;
default:
strTag += *iter;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment