0 Replies Latest reply on Feb 15, 2012 10:47 AM by RajeshGRC

    How to check if a string contains HTML

    RajeshGRC

      Hi,

       

      I am having issues getting the actual height of the text component.

      I set the htmlText property of the text component and try to get the height using the measuredHeight property.

      It works fine as long as the text contains any HTML. However if the text does not contain any HTML and it is just a plain long text then I don't get the actual height of the text.

       

      So what I want to do is in case the text does not contain any HTML then instead of setting the htmlText property I want to set the text property.

      So how do I check if the text contains any HTML?

       

      Thanks,

      Rajesh