0 Replies Latest reply on Dec 12, 2013 3:47 AM by poortip87

    Apply HTML formatting to text

    poortip87 Level 1

      Hi All,

       

      Is there any class or API in Flex that can apply HTML formatting to text. I mean suppose there is a text as follows:

       

      This is the first para having some text in bold and italic

      From the second para you can open google in the browser from the link www.google.com

      This para contains text in blue color.

      The following is an unordered list:

      • Item 1
      • Item 2
      • Item 3

       

      Can the above text be formatted in HTML as follows,

       

      <p>This is the first para having some text in <b>bold</b> and <i>italic</i></p>

      <p>From the second para you can open google in the browser from the link <a href="http://google.com">www.google.com</a></p> 

      <p><span style="color:#0000ff">This para contains text in blue color.</span></p>

      <p>The following is an unordered list:

      <ul>

      <li>Item 1</li>

      <li>Item 2</li>

      <li>Item 3</li>

      <ul>

      </p>

       

      I will prefer if I do not have to do this manually. Is there any way?

       

      Thanks!