Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想渲染视图中的所有 html 元素以获取包含在其中的数据。(即在段落标签“早上好”和另一个段落标签“祝你有美好的一天”中,如果我渲染段落标签,我会得到“早上好有一个美好的一天”。)因此,如果有人对此有任何想法,请分享。
如果你想用 html 标签显示输出,那么试试这个
< for less-than > for greater-than & for &
或 htmlencode