Work in Progress
parent
06a3283d40
commit
475fe6e4da
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue