Home

Bug - Util.Run QueryResultFormat.HtmlFragment - Cannot parse custom HTML: Unexpected end tag

When I call one linqpad script from another one and dump the result, I'll get an error in place of table result.
(Experienced in LinqPad 5 Beta (Premium Edition) v 5.20.01, LinqPad 5 (Premium Edition) v 5.10.00)


Cannot parse custom HTML: '<table class="headingpresenter"><tr><th class="headingpresenter">TelNo List</th></tr><tr><td class="headingpresenter"><table id="t1000001"><tr><td class="typeheader" colspan="2"><a href="" class="typeheader" onclick="return toggle('t1000001');"><span class="typeglyphx" id="t1000001ud">&#708;</span>&#248;[] (1 item)</a></td></tr><tr><th title="System.String">TelNo</th><th title="System.Boolean">Allowed</th></tr><tr><td>+420999888777</td><td>True</td></tr></table></td></tr></table><table class="headingpresenter"><tr><th class="headingpresenter">Telno</th></tr><tr><td class="headingpresenter">Telno: +420999888777] is ok..</td></tr></table></div>' - 'Unexpected end tag. Line 1, position 658.

Calling script - name: linqpad-bug-launcher-htmlret.linq

var s = "+420999888777";

var x = Util.Run("linqpad-bug-htmlret.linq", QueryResultFormat.HtmlFragment, s);

if (x != null)
{
x.Wait();
x.Dump("Launched");
}
Called script - name: linqpad-bug-htmlret.linq (C# Program)



void Main(string[] args)
{
var telNo = "+420111222333";
if (args != null)
{
if (args.Length > 0)
telNo = args[0];
}

new[]
{
new
{
TelNo = telNo,
Allowed = true,
}
}.Dump("TelNo List");

try
{
string.Format("Telno: {0}] is ok..", telNo).Dump("Telno");
}
catch (Exception ex)
{
ex.Dump();
}
}

Comments

Sign In or Register to comment.