From: Daniel Baird Date: 2006-07-23T16:51:50+09:00 Subject: Re: strip tags? ------=_Part_51085_15124700.1153641106744 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/23/06, Stefan Scholl wrote: > > Max Benjamin wrote: > > Is there an easy way to strip html tags from strings? > > A regex isn't always the _best_ way to deal with markup > languages, but for an _easy_ way it's good enough. the problem is, it's not always the _correct_ way.
But, having a > in an attribute is rare; if one-in-a-blue-moon errors are ok, regexes are a nice easy solution. ;D -- Daniel Baird http://tiddlyspot.com (free, effortless TiddlyWiki hosting) http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things That Suck) ------=_Part_51085_15124700.1153641106744--