WebApi Help Page: don't escape HTML in XML documentation

后端 未结 2 639
甜味超标
甜味超标 2020-12-05 11:05

I am using XML Documentation for my ASP.NET Web API Help Page as shown here. I would like to know if there is a way to include html in the comments such that it will be rend

2条回答
  •  北海茫月
    2020-12-05 11:38

    @controllerDocumentation does not work for me, but changing the line to@api.Documentation works. i.e. @html.raw(api.Documentation).

提交回复
热议问题