• Blogs (9)
    • πŸ“± 236 - 992 - 3846

      πŸ“§ jxjwilliam@gmail.com

    • Version: β€πŸš€ 1.1.0
  • PHP: convert TinyMCE strings

    Blogs20112011-10-30


    PHP: convert TinyMCE strings

    If you use famous wysiwyg tool TinyMCE + PHP, it is common to convert TinyMCE string into MySQL DB or present as HTML. This easily causes problems if operating special chars (’, ”, &, < > .) etc. Here I list the 2 cases: TinyMCE output as HTML; and TinyMCE output to Database.

    1. without a database

    Here is a very useful help article for the convert WITHOUT Database operation: How-to implement TinyMCE in PHP. I summary and use like this: (suppose the tinymce