Second example: Stripping the HTML from Visitor Entries
If entries will be displayed later, it may be important to "disable" any direct HTML entries folks decide they want to enter. Here we just look for
left and right carets (<>) and use the .substring call to replace them with "<" and ">" respectively.
Type some HTML into the text element below. Then click the submit button to see how it is altered.
|