HTML tags not being rendered

后端 未结 3 1872
眼角桃花
眼角桃花 2021-01-14 10:06

I\'m building a simple blog system with FuelPHP and TinyMCE editor.

When I format my text in the TinyMCE (or CKEditor, doesn\'t matter) and save it in my database ev

3条回答
  •  不知归路
    2021-01-14 10:48

    when you save your data in database its encoded for some security reasons you just need to

    html_entity_decode("string retrived from database");

    and then print it.

提交回复
热议问题