Home  >  Q&A  >  body text

How to save rich text editor to database?

How to save rich text editor to database? In what format is it saved? How to read?

Labmem No.000Labmem No.0002516 days ago3148

reply all(1)I'll reply

  • Leon4055

    Leon40552017-11-01 14:15:33

    1), wait for the front-end data through the content in the javascript code.

    2), save it in the data table as a string, the fields in the table must be tinytext, text, mediumtext and longtext types .

    3), read using htmlspecialchars

    http://fex.baidu.com/ueditor/

    Please read more documents, thank you !

    reply
    0
  • Cancelreply