开发者

Storing text in database with tags

Can anyone please help me with this? I want to know how to store text in database with the tags. For example, if the text is bold, italics, underlined, justi开发者_开发技巧fication, paragraphs, space etc., then even that must be retrieved and displayed in the textarea of the jsp page. Please help me out!


use function getTag("id_of_tag") to get tag.

attached its value and save it to database.Later retrieve it and show in view.


  1. Create a field in database with datatype Text
  2. Use some javascript text-area such as tinymce so that user can enter the text bold, italic etc.
  3. Save the field with proper sql injectioning after form submission.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜