php - Secure WYSIWYG option -


I am creating an app that requires users to input large amounts of text such as paragraphs at a time it occurs. I installed an editor (ckditor) to provide a nice interface to edit your text etc. The problem is that I can not secure input before entering the database because it erases all the HTML and loses text paragraphs and other styling.

Is there a way to securely store that data and keep basic style like paragraphs and even text colors?

Here's what I have to do and work with custom bulletin board and forum system Was there. When you are trying to keep people ideological content, images, videos, smileys etc. ... you need some kind of content placement, while posting is also sanitary.

You have some options. My recommendation is to find an editor with a BDODOD plugin. When the posts come to your database, then there is an HTML element present in anything that appears in brackets instead of the open / close tag (ie, []) so if you want to do something bold , You can bold [B] [/ B] Then you do a simple job that pulls these BBCAID elements and replaces them with the proper HTML code.

One more thing that you can do, which I do not recommend, but to see, all open and closed when you tag them with your HTML entities, and then you have all the related HTML entities Let's change Straw_Raille in open and close tags.

Because of this I am a BBCode or at least some kind of markdown because you can completely shut down users styling those positions.

- If you go with the BBCOD route, it will help you.

- You can add it only to your CK editor WYSIWYG and run with it.


Comments