作者:瑶瑶2502863511 | 来源:互联网 | 2022-12-19 14:24
Anyadvicewhathasworkedforyouwhendealingwithuser-enteredmarkup,e.g.wikiormarkdown.Ih
Any advice what has worked for you when dealing with user-entered markup, e.g. wiki or markdown. I have both CPU & database space costs, so I'm not sure which way to go.
在处理用户输入的标记时,对您有用的任何建议,例如:维基或降价。我有CPU和数据库空间成本,所以我不知道该走哪条路。
Store markup in database & render to html on the server for each pageview. (Less database space but more CPU usage)
将标记存储在数据库中并渲染到服务器上用于每个网页浏览的html。 (减少数据库空间但CPU使用率更高)
Store markup in database & render to html on the client using Javascript. (Possibly more difficult to implement)
使用Javascript将标记存储在数据库中并渲染到客户端上的html。 (可能更难实施)
Store just the rendered html in the database & convert back to markup if editing required. (Again, possibly tricky to implement).
将渲染的html存储在数据库中,如果需要编辑,则转换回标记。 (再次,可能很难实现)。
Store both html & markup in the database. (Double the database space).
将html和标记存储在数据库中。 (数据库空间加倍)。
Something else.
(I'm using MFC & Linqtosql).
(我正在使用MFC和Linqtosql)。
4 个解决方案