![]() ![]() |
Audio Asylum Thread Printer Get a view of an entire thread on one page |
For Sale Ads |
In Reply to: Change them, but to posted by James L on March 30, 2004 at 22:09:12:
and I can't imagine why. It can only cause problems. If someone explicitly enters the special character codes "& l t ;" and "& g t ;" (minuse the spaces, of course), why substitue angle brackets? Unless that's an unintended consequence of using some library or other in your code.Substituting the special character codes, on the other hand, is a good way to keep HTML from being entered where you don't want it. And like I tried to say in the last post, it still displays correctly in input and textarea form elements.
![]()
Follow Ups:
Actually, the code used to alway substitute the & l t ; and so forth. The problem was when the subject line got truncated due to a limit. I probably could have done a complicated fix and checked for a hung open bracket, but what happens is that is looks like an href because it picks up the next Posted link or something and the whole message is a weird link. I think I posted an example to Mart. The easy way out was to just change the bracket to a ( in the subject.Yes, other html get's purged out too in various input field like script tages and whatnot.
![]()
This post is made possible by the generous support of people like you and our sponsors: