Work in Progress

work-in-progress
Harald Christian Joachim Wolff 2018-10-17 21:05:00 +02:00
parent 06a3283d40
commit 475fe6e4da
2 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,8 @@ namespace appsrv
public static void Main(string[] args)
{
ApplicationServer server = new ApplicationServer();
Application application = new Application(server, "../../../sharp-wawi/bin/Debug/WaWi.xml");
//Application application = new Application(server, "../../../sharp-wawi/bin/Debug/WaWi.xml");
Application application = new Application(server, "../../../netmanager/bin/Debug/netmanager.xml");
//Application application = new Application(server, "test/TestApplication.xml");
server.Add(application);

View File

@ -21,9 +21,12 @@ namespace appsrv.templates.elements
{
foreach (Token token in tokens)
{
string text = token.Evaluate(context) as string;
object o = token.Evaluate(context);
if (o != null)
o = o.ToString();
context.ContentWriter.Write(
System.Net.WebUtility.HtmlEncode(text)
System.Net.WebUtility.HtmlEncode(o as string)
);
}
}