1 Reply Latest reply: Nov 1, 2014 12:37 PM by DJ Gecko RSS

    Truncate htmlText in a TextField

    DJ Gecko Community Member

      Hi,

       

      I know how to truncate text in a TextField, but does anyone know how to remove text and not html elements from a TextField's htmlText?

      I found this site: http://thanksmister.com/2009/07/12/flex-truncating-html-text/

       

      I only need this method I think -> 'truncateHTMLText'

       

      However this method is broken, the for loop is broken and there's random brackets. Can anyone fix this? Or does anyone have any other solutions?

       

      Thanks.