Skip navigation
Currently Being Moderated

finding html tags

Jun 6, 2012 10:56 AM

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

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points