From: Kent Dahl Date: 2001-11-26T20:45:46+09:00 Subject: [ruby-talk:26494] Re: String editing question HarryO wrote: > So, can anyone suggest the right way to approach this? Not the "right way", but one that I, as a I find myself using "pseudo-xml" in lots of posts, prefer, is that recognized legal tags are entered as HTML, and all other instances of < and > are replaced with < and > This seems somewhat easier to implement too. You could regexp on any occurance of /<.*>/, check if the contents are listed in the "allowed tags" list, and gsub the < and > if not. Of course, this is just of the top of my (quite often faulty) head. -- <[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]> )____(stud.techn.;ind.�k.data)||(softwareDeveloper.at(Trustix))_( /"Opinions expressed are mine and not those of my Employer, "\ ( "the University, my girlfriend, stray cats, banana fruitflies, " ) \"nor the frontal lobe of my left cerebral hemisphere. "/