Re: hyperlinking unique input strings on the fly when displaying in HTML

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31699
interpreted = N
texte = 4.x will have a ConvertWords that will allow you to do some of what you want to do. However, it is a non-trivial (read HARD) proposition to allow some kinds of HTML and forbid others. I think the best thing to do would be to have a special field that the user could include a link, then strip out anything that looks like a command, and rewrap it so it is now a clickable link. If you want a talklist with this kind of power you really need to go with something like O'Reilly's WebBoard: http://webboard.ora.com. You can specify what HTML you will allow or disallow within messages. But to correctly treat random user input as potential links, you need to have a fully functional HTML parser.John PeacockJohn Butler wrote: > > Remember several weeks ago - someone wanted webcat to auotmatically spot unique text > strings within remote user input text and then automatically hyperlink just that unique > string ? ... Like for example in the talklist archives when someone would put pacific > coast in the body of his post, then when you found that post in the archives magically > that string pacific coast would now be hyperlinked to their old site. (at least it used > to do it) > > I need to do something like that so that newbie remote users automatically get their > references to websites hyperlinked for them (when that text is displayed in the HTML). > And at the same time I need to protect against malicious users inputting (and then me > displaying)