在我的应用程序中,我有应用程序条款。在我以前使用HTML将其放在前端之前。
但现在我需要把这个文本数据库中的一列叫做AppTerms表里面叫做应用程序。
我在stackoverflow中提到了此链接,并遵循以下步骤:
UPDATE [AppsDatabase].[dbo].[App] SET AppTerms = 'This App has no minimum term.' + CHAR(13) + 'This App is built and is supported through the standard way of using the company online support.' + CHAR(13) + 'Incorrectly formatted data will not be formatted but may be charged for.' WHERE AppID = 8 GO
但是我在这里没有换行。而且有人可以告诉我如何在每行中添加项目符号吗?
如果要显示HTML,则需要存储</br>
而不是CHAR(13)。
以HTML显示此文本将产生正确的显示。此外,您可以在中包装一个段落<p>...</p>
。
有关项目符号列表,请访问http://www2.gol.com/users/billp/articlehtml/bullet.html。
这是在您将文本取出并以HTML显示的前提下。