Posted by Anonymous on Sat 13 Sep 19:19
report abuse | download | new post
- <?php
- $text = '1] Good: [b]Bold[/b][i]Italic[/i]
- 2] Good: [b][i]Both[/i][/b]
- 3] Bad: [b][i]Alternating tags[/b][/i]
- 4] Bad: [b][i]Misplaced tag[/b]
- 5] Good: [b][i][u][s]All tags[/s][/u][/i][/b]
- 6] Bad: [b][i][u][s]Swapped end tags[/s][/i][/u][/b]';
- echo "<pre>$text<hr>";
- // replace good tag pairs
- }
- // replace bad tags
- // htmlencode to display example
- ?>
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.