How do you get a TextField.htmlText to display a character?

I'm trying to have a dynamic text field display htmlText and
I've run into a bug/problem where the text field will NOT display
the < character (less than sign). In fact, unless I escape that
character like: \<, the text field stops displaying ANYTHING
after a < as well.
var tff:TextFormat = new TextFormat();
tff.size = 12;
tff.color = 0x000000;
tff.align = "left";
mytextField.ptf.type = "dynamic";
mytextField.ptf.multiline = true;
mytextField.ptf.html = true;
mytextField.ptf.embedFonts = false;
mytextField.ptf.selectable = false;
mytextField.ptf.autoSize = "left";
mytextField.ptf.htmlText = myHTMLString;
mytextField.ptf.setTextFormat(tff);
mytextField is a clip on the stage that has a dynamic text
field in it. it's set to Arial and Use Device Fonts.
the results when
var myHTMLString:String = "<i>this</i> is a
<b>sample piece</b> of html text with a \<
character."
displays:
this is a
sample piece of html text with a \ character.
and when
var myHTMLString:String = "<i>this</i> is a
<b>sample piece</b> of html text with a <
character."
displays:
this is a
sample piece of html text with a
I presume that it's having problems displaying the <
character because it's confusing it with the start of an html tag.
How do you escape the < character so it can be displayed?
I tried url and html encoding it (&lt; and %3C) but got
the same results

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15863

Similar Messages

  • How do you get your email content to display?  Mine shows in preview but not when I open the email, How do you get your email content to display?  Mine shows in preview but not when I open the email

    How do you get your email content to display?  Yesterday, I suddenly could only see the content in preview.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How do you get the bookmarks list permanently displayed on the left side of the screen?

    I somehow managed to get the bookmarks permanently open and displayed in a vertical column on the left side of the screen. I accidentally closed it and cannot get it to display again. How do you manage to get the bookmark list permanently open and displayed again? Thank you.

    Hello exoticdoc2, see if the next [https://addons.mozilla.org/en-us/firefox/addon/all-in-one-sidebar/ All-in-One Sidebar add-on] it is useful for you, it is more than a sidebar bookmarks toolbar.
    thank you

  • How do you get IDcs5 to open and display properly??

    Purchased InDesign CS5 and it worked well for the first few months then it decided not to open up properly onscreen? Now when opening all I ever get is a tiny portion of the tool bar appearing in the upper left corner of the screen. If I use the 'expand' button it only fills the screen with a completely blank page which is of no use. So I'm left to resort to manually clicking and dragging the toolbar to open the workspace to fill the screen......even then, it tends to 'snap back' to the tiny toolbar in the upper left corner? This is very annoying and frustrating to say the least! I'm working in a windows environment running Windows 7 if that makes any difference. I've searched but there appears to be no fix for this? Why does it not just open up on screen properly like every other program??? Why can't the folks at ADOBE fix this? The only reason I'm using this program is because one of our biggest clients insists on using InDesign, otherwise I'd dump it! Does anyone know the cause or fix for this? Sure would appreciate it! Thanks!

    @Peter – I cannot tell what's going on here, because I'm working on a Mac OSX 10.6.8.
    I've seen such a thing in InDesign CS4, but not in InDesign CS5.5 anymore.
    However, maybe it is possible to resize the main window by scripting its bounds.
    For that, one file must be opened and its window must be resized with JavaScript. At least on a Mac. Could be different on Windows, because some UI elements behave different from OS to OS.
    To get the right values for the bounds you could do the following:
    Start InDesign, maximize it manually, open a new document. You need not to save it.
    Then start the following line of code, that will read out the bounds of the window and present them as text in a "palette" type of window:
    #targetengine "session";
    //Get the bounds and convert them to a String object:
    var myMessageString = String(app.documents[0].windows[0].bounds);
    var w=new Window("palette","ReadOutBoundsOfWindow:");
    var e=w.add("edittext",[0,0,200,50],myMessageString,{multiline: true,scrolling:true});
    e.active = true;
    w.show();
    As a result you'll get a string of 4 numbers in a "palette" highlighted.
    Copy/paste the values together with separating commas to your text editor or the ESTK.
    Currently I'm on a MacBook Pro and the numbers I will get with that method are: 22,0,999,1680.
    The numbers will be different, depending on your screen size and resolution. They are values for pixels in the form: [top, left, bottom, right].
    Now you can close the palette.
    That was just the preparation for the following lines of code, that will set the bounds.
    Every time after you restarted InDesign, you could execute the following script (you can assign a keyboard shortcut to it):
    app.documents.add();
    //Exchange the values in the brackets with YOUR values you obtained with the other script.
    //Thiese values set the working window to a specific size [top, left, bottom, right]:
    app.documents[0].windows[0].bounds = [22,0,999,1680]; //Thiese are the values of my specific MacBook Pro.
    //Now we don't need the dummie document anymore. Close it:
    app.documents[0].close(SaveOptions.NO);
    Like I said, it's working on a Mac.
    Don't know if it will on MS Windows.
    Uwe

  • How do you get fontmetrics before displaying something on the screen?

    Let me ask in another way:
    how do you get fontmetrics before displaying something on the screen?
    Edited by: tjacobs01 on Aug 24, 2008 12:03 PM

    and you call getGraphics() it returns nullI learned to not use the getGraphics() method. Check out my posting here where I ask what the getGraphics() method is good for:
    [http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741|http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741]
    Also, c.getFontMetrics(c.getFont()) will be an NPE because Font is initially null.Maybe I don't understand the question. The following works for me:
    import javax.swing.*;
    public class Test
         public static void main(String args[])
              JTextField textField = new JTextField();
              System.out.println(textField.getFontMetrics(textField.getFont()));
    }Every question should have a SSCCE, so we don't have to guess.

  • How can you get OS Lion back if you already downloaded Mavericks?  I CANNOT live with the battery life of 2 hours!!  HELP

    How can you get OS Lion back if you already downloaded Mavericks?  I CANNOT live with the battery life of 2 hours!!  HELP

    Kappy wrote:
    Don't downgrade OS X without first erasing the drive. You cannot restore a Time Machine backup of Lion directly on top of a later version of OS X such as Mountain Lion or Mavericks.
    When you "Restore from a Time Machine Backup.", the drive will be erased for you, but yes, won't hurt to:
    Boot into Recovery (hold ⌘R on boot)
    Utility->Disk Utility->Erase Macintosh HD, then Repair Macintosh HD
    Quit Disk Utility
    Then Select: Restore from a Time Machine Backup.

  • How do you get Safari Browser back on your Iphone if your daughter erased it?

    how do you get safari browser back on your iphone if your 4 yr. old daughter deletes it by accident?

    You cannot delete Safari.
    It is either on another page, in a folder, or you have restirctiosn set.
    Check all three of these possibiities.

  • How can you get your photos in the order they are in your computer

    How can you get your photos synced to your phone in the same order as the file on your computer?

    The iPhone Photos app orders photos by date.

  • How can you get your submit buttons to be a single click instead of the default double click?  (The

    How can you get your submit buttons on the quiz template to be a single click instead of the default double click?  (The option to choose double click or not is not showing in properties for this).

    Hmmm... Submit button doesn't need a double click at all. Maybe you are talking about the two-step process? When you click on Submit, the feedback appears with the message to click anywhere or press Y. Is that what you are talking about? If you are talking about a real double-click, something must be wrong in your file. And which version are you using?
    http://blog.lilybiri.com/question-question-slides-in-captivate
    Lilybiri

  • How do you get your purchased items on apple tv to you i tunes on your computer

    How do you get your purchased items on apple tv to you i tunes on your computer

    Download them.
    Store > Check for Available downloads.

  • How can you get your i pod touch screen fixed

    How can you get your screen on an i pod fixed

    Apple will exchange your iPod for a refurbished one for $199 for the 64 GB one and $99 for the others. They do not fix yours.
    Apple - iPod Repair price      
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit

  • HT4972 after downloading ios5.1.1 how do you get your music back on your ipod?

    after downloading ios5.1.1 how do you get your music back on your ipod

    Sync it from your iTunes library
    Redownload iTunes purchases by
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If it was not in your iTunes library and you updated via iTunes you will have to get the music again sinve synced media like apps and music are not include din the iPod backup that iTunes makes.

  • How do you get your apps from the i tunes library onto your mac?

    how do you get your apps from i tunes library onto your mac

    You don't.  Apps from iTunes are for iOS devices.  Apps for the Mac come from the Mac app store.  Click the apple >> app store.

  • How do you get your old scores on your games when you transfer the games between devices ive signed into game center and my scores are there but when I open the games Im at 0 again

    how do you get your old scores on your games when you transfer the games between devices ive signed into game center and my scores are there but when I open the games Im at 0 again

    Did you do this?
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • How do you get your money back from a charge you never even made on the app store?

    How do you get your money back from a charge you never even made on the app store?

    Contact iTunes.
    How to report an issue with Your iTunes Store purchase

Maybe you are looking for