php - How to let a user manipulate text (make it bold/italicized), before it is saved in a MySQL table? -


Is there any way a user can type via PHP? For example, a user may be able to create text that he typed bold or italy . Anyone can assume that I am trying to get the same effect of this website. Is there any way to do this in PHP? I am trying to do this because once the user hits 'deposit' after typing the text information, the information will be saved in a MySQL table. From now on, I will try to display information later. Therefore, it will be easy to retrieve the text because the user has typed it (bold or italic). how does it work?

Thank you.

Stack overflow uses Markdown language here, it has a PHP implementation: and here is a JavaScript implementation : Or you can use WYSIWYG control to edit StackOverflow on the following grounds:

Actually it italic and bold (and other formatting List) as a simple text with special formatting: * italic * ** bold ** so that you can make that plain text in your database Can store again before formatting it, it is formatted.

(Here is the real MarkTown project :)


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -