Object model for html generation?

Posted by ais on Stack Overflow See other posts from Stack Overflow or by ais
Published on 2010-01-12T15:33:00Z Indexed on 2010/05/01 19:47 UTC
Read the original article Hit count: 300

Filed under:
|
|
|

Something like

new Div
{
  new A{Href = "test", Content = "link"},
  new P("text"),
}.ToString() == "<div> <a href='test'> link </a> <p>text</p> </div>"

© Stack Overflow or respective owner

Related posts about .NET

Related posts about web-development