将html内容添加到隐藏的表单字段 [英] add html content to hidden form field
本文介绍了将html内容添加到隐藏的表单字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有可能将大量html内容传递给隐藏字段,我该怎么做?
谢谢
Jonathan
解决方案
是 - HTML编码内容(例如用& lt替换<等等)
您没有指定用于排列字段值的语言,因此我无法提供有关如何编码的详细信息。
Is it possible to pass a chunk of html content to a hidden field and how would I do this?
Thanks
Jonathan
解决方案
Yes - simply HTML encode the content (e.g. replace "<" with "<" etc...)
You didn't specify which language you'll use for poplulating the field value, so I can't help with details of how to encode.
Here's a reference of how to do it in jQuery.
这篇关于将html内容添加到隐藏的表单字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文