【发布时间】:2014-03-12 15:53:58
【问题描述】:
我正在为我的 ASP.NET Web API 帮助页面 as shown here 使用 XML 文档。
我想知道是否有一种方法可以在 cmets 中包含 html,以便将其呈现在网页上,而不是被删除/忽略/转义。
具体来说,我正在寻找一种创建换行符的方法,但能够创建项目符号列表等会很棒!
Ex/我希望能够做这样的事情:
/// <summary>
/// CRUD operations for SalesDocument<br/>
/// This is a new line
/// </summary>
[RoutePrefix("api/SalesDocument")]
public partial class SalesDocumentController : ApiController
并让它像这样显示在帮助页面上:
CRUD operations for SalesDocument
This is a new line.
而不是这个:(在这种情况下,<br/> 以某种方式被删除 - 如果我尝试使用 <p> 标记,它们只是被转义)
CRUD operations for SalesDocument This is a new line.
*我已经尝试了多个帖子建议的工具提示<para>标签,但这在我的帮助页面上不起作用。
非常感谢任何建议!
【问题讨论】:
标签: asp.net-web-api asp.net-web-api-helppages