开发者

Question About FCK Editor? And Control validation?

I have added FCK Editor in my project. In that user can able to create a form with the controls provided in FCK At last the project will be shown to the c开发者_StackOverflowustomers they don't have any idea about HTML.So they might enter the same name for all the controls? while saving source of a FCK Editor once all form creation is done into the Database i need to validate those "names" of controls.

Please help me how to validate the control itself in FCK?

Thanks in advance,

krishnakumar S


Since CKEditor will output HTML, your best bet for validating this HTML is to use an HTML parser. Which scripting language do you use? If PHP, I recommend Simple HTML DOM. If Ruby, hpricot seems to work fine.

Using a parser will allow you to deeply and (hopefully) safely examine your forms. Do be aware, however, that the HTML output generated by CK (and other wysiwyg editors) will often be quite verbose and messy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜