As its name implies, Text2Xhtml is a little tools which tranforms plain text into XHTML.
Many web application like wiki, blogs, news systems, forums, etc... requires this kind of tools.
To quickly get some advanced features in your application whithout getting your hands dirty, you can use the Text2Xhtml tranformer which support common things like :
- ordered and unordered lists (no sub level yet)
- preformatted text
- raw html insertion
- haxe syntax highlight
- strong and emphased
- images insertion
- swf insertion
- well formed xml validation (throws exceptions)
=== Usage : ===
// use default transformation parameters (every features) var xhtml = mtwin.text.Text2Xhtml.transform(myInputString); // custom transformer to disable features var t = new mtwin.Text.Text2Xhtml(); t.htmlEnabled = false; // no raw html t.codeEnabled = false; // no haxe code t.swfEnabled = false; // no swf inclusion var xhtml = t.transform(myInputString);
=== Plain text syntax : ===