1 Reply Latest reply on Jun 6, 2012 11:08 AM by funandlearning333

    finding html tags

    funandlearning333 Level 1

      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