@amoerie amoerie released this Jan 11, 2019 · 5 commits to master since this release

Assets 2

Some new improvements:

  • IHtmlElement (and therefore HtmlTag and HtmlText) now inherit from IHtmlContent. This means you can now just @(... some HTML tag) from within Razor and it'll render just fine without having to call .ToHtml() or having to register a base Razor ViewPage base class!

  • Added extra tricks when parsing IHtmlContent to take into account some special scenarios. For example, when parsing a TagBuilder we just read its properties instead of rendering it and putting it through the Agility pack pipeline.

  • Circumvent a Razor rendering bug by always providing empty content to tags

  • Add attribute shorthand for 'Src'