tags:

views:

322

answers:

2

At what stage does my input in the textarea change from being this raw text, and become HTML? For example, say I indent 4 spaces

like this

Then the WMD Showdown.js will render it properly below this textarea I type in. But the text area still literally contains

    like this

So is PHP server side responsible for translating all the same things the showdown.js does to permanently be HTML in the SoF Database?

+1  A: 

Well first of all StackOverflow is built on ASP.NET, but yes essentially the characters in the rich text box gets translated back and forth.

jtyost2
+6  A: 
Willie Wheeler
when you say "Run showdown.js server-side to convert the Markdown to HTML." ...how would I do this?
Andrew
In Java, I use Rhino to run showdown.js on the server. Java 6 has native support for scripting engines and you can pick Rhino (JavaScript engine) as an implementation.
Willie Wheeler