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.
- Create a field in database with datatype
Text
- Use some javascript text-area such as
tinymce
so that user can enter the text bold, italic etc. - Save the field with proper sql injectioning after form submission.
精彩评论