Save the text through PHP

15 views
Skip to first unread message

Maks Surguy

unread,
Mar 8, 2012, 1:44:45 PM3/8/12
to jquery-wysiwym
Hi !

How to save the updated text to the HTML file on the server side?

Mike Shepanski

unread,
Mar 8, 2012, 4:41:31 PM3/8/12
to jquery-...@googlegroups.com
This is outside the scope of my project.  I do not use PHP.

However, I wouldn't save the HTML. Rather, keep the human input markup text saved. How you save it would depend on how PHP handles things. One option is to simply save it to a database and retranslate it to HTML with a server side Markdown to HTML translator for PHP.  To keep things fast, you might consider keeping both the Markdown input and the translated HTML.  Then only update the HTML when needed.

Mike

Maksim Surguy

unread,
Mar 8, 2012, 5:17:49 PM3/8/12
to jquery-...@googlegroups.com
Yes, that makes sense as well, thank you!

What would be the best way to save the markdown text to DB from the form?
--
___________
+ Maks
Reply all
Reply to author
Forward
0 new messages