Render or convert Html to 'formatted' Text (.NET)

前端 未结 2 1436
死守一世寂寞
死守一世寂寞 2020-12-31 13:11

I\'m importing some data from another test/bug tracking tool into tfs, and I would like to convert it\'s description, which is in simple HTML, so a plain string, where the \

相关标签:
2条回答
  • 2020-12-31 13:53

    In the end, once I got more comfortable with TFS, I customized the work item type to include a new HTML Field, and just copied the contents into that field.

    This solution was so much better, because we could now see the intended formatting of the field.

    0 讨论(0)
  • 2020-12-31 13:56

    Rather than regex, you could try loading it into the HTML agility pack? If it was xhtml, then an xslt transformation might be a good option.

    0 讨论(0)
提交回复
热议问题