<link rel="stylesheet" href="../example.css" type="text/css" /> </head> <body> <form action="bbcode.php" method="post" action="<?php echo htmlentities($_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"]); ?> "> <h1> Output BBCode</h1> <p> This sample shows how to configure Rich Text Editor to output BBCode format instead of HTML. BBCode syntax is commonly used by forums and comment systems. </p> <div> <?php echo $rte->GetString(); ?> <br/> <button type="submit">Submit</button> </div> <br/> <h3>BBCode:</h3> <textarea style="height:120px;width:760px;"><?php if (@$_POST["Editor1"] != "") { echo RTEBBCodeConverter::HTML2BBCode($rte->Text); } ?> </textarea> </form> </body> </html>