|
|
Yes, something along those lines, and it would only be slower by milliseconds. Another thing I'd do which I've seen on Vbulletin 3 is to have a maximum length for the actual link text and fill in with ..., since some of these URLs can be quite long and stretch pages.
e.g. http://www.server.com/something/whatever/argh/this_goes_on/forever.html
becomes http://www.server.com/someth...forever.html
The thing I suggested would be a little harder, and it's tricky to say without knowing the actual system that's being used to check for valid tags (i.e. only allowing B, I, STRONG, EM, A and IMG - I think that's it) but I'd probably incorporate a simultaneous check that the tags were actually closed, and if they weren't, send the poster to the preview page instead, with a big warning message saying "YOU DON'T SEEM TO HAVE CLOSED YOUR TAGS, THIS IS WHAT IT WILL LOOK LIKE IF POSTED, ARE YOU QUITE SURE?" Depending on the method used to check, probably use regexps there as well. I like regexps. I'm a bit of a Perl hacker I'm afraid. |
|
|