You ran htmlCodeFormat on the string first. That escapes HTML.
On Wed, Jun 6, 2012 at 1:01 PM, funand learning <[email protected]> wrote: > > Hi All - > > > > > > I am trying to find if a particular string has html tags in it. For example > > > > > > <cfset myStr = "<p>Hello WOrld</p>"> > > > > > > I am using the following line of code to see if p tags exist > > > > > > <cfoutput>#FindNoCase("<p>",htmlCodeFormat(myStr))#</cfoutput> > > > > > > The above always returns 0. Do I need to use regex to achieve the desired > result? > > > > > > Thanks > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351476 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

