Post system - Tips

Asked

Viewed 71 times

0

Hello, I’m looking to create a blog system for my site and I have an initial idea of how to do it, very basic.

In basic, I would have one that will send the text of a <textarea> to the database, together with the author, date, etc..

In the textarea I noticed that it is possible for the user to put html tags (<div>, <p>..) then I will use php htmlentities to prevent the user from using such tags and end up damaging the site layout (it is normal this?).

With this, I would like to know how to implement options such as leaving text in bold, placing an image, a url, etc.. I’d just like a few tips on how to implement this...

The one of the url has some sites that in the post it shows a preview of the site and tals..

1 answer

0


Hello, you can use plugins that "mount" an editor for you. I recommend the Ckeditor (http://ckeditor.com/), take care to treat the value that the Ckeditor textarea will return, because it allows you to edit a post visually but returns an HTML. There are several others as well, such as, Tinymce and Froala.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.