DarthFubuMVC/fubumvc — Issue #228: EndForm returning a string which spark encodes by default
Author: mikeobrien
Created: 2012-02-06 04:21:05+00:00
State: open

For some reason after upgrading to the latest nuget all my form *end* tags are encoded. I was writing them a la ${this.EndForm} which for some reason did not encode it before. If you check git blame that code has not been touched for almost 2 years so maybe there was a change on the spark side (I'm a little stumped on that):

https://github.com/DarthFubuMVC/fubumvc/blob/master/src/FubuMVC.Core/UI/FubuPageExtensions.cs#L298

In any event I'm wondering if there would be any problem returning an HtmlTag instead of a string as it appears that the encoding would be handled properly in that case. If that sounds reasonable I can send a patch (And avoid having to go and change all my end forms to bangs).