【发布时间】:2011-06-16 14:41:09
【问题描述】:
我使用 tinymce 存储数据,每个表之前都有占位符
输入数据时的编辑器视图:
#data1
[html table1]
#data2
[html table2]
#data3
[html table3]
这存储在用<p>标签包裹的数据库中。
我想根据传递的参数剥离并获取 html 表。
string getTable(string placeholder)
{
string content = db.getData();
//placeholder = data1, return html table 1 substring data from content variable
return [html table1]; //html string
//placeholder = data2
return [html table2]; //html string
}
如何使用 C# 实现这一点?
【问题讨论】:
标签: c# .net asp.net regex string