Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-10-2006, 01:23 PM   #1
datter
Member
 
Join Date: Dec 2004
Posts: 39
Default Dynamic text / HTML text and a less than symbol (<)

I have a dynamic text box into which I am loading text from a database. The text is input into the database via an html based backend that lets a client write a simple email type note, with basic (flash htmltext supported) formating such as bold, italics etc.

All of this works fine.

My problem arises when someone enters a less than symbol ... < ... into their text. The dynamic textbox interprets that < as the start of an html tag and the text stops displaying at that point. I can get around it by converting the < to %3c and having the text go into the dynamic text field's .text variable but that breaks the htmlformatting, so it needs to go into mytextfield.htmltext... problem being when I do that is that the pure < breaks the text string as mentioned above, or if it's converted to %3c.. it shows as %3c, not as a < symbol. Yes, it's a bit confusing.

How can I have a less than symbol appear when entered, yet still retain the html formatting for the dynamic text field?

Thanks for any input.

datter

Last edited by datter; 04-10-2006 at 01:26 PM.
datter is offline   Reply With Quote
Old 04-10-2006, 02:09 PM   #2
datter
Member
 
Join Date: Dec 2004
Posts: 39
Default

Nevermind, it's fixed.

Converting less than symbols with a space after it "< " to "& l t ;" (without the quotes and spaces of course) will properly render < in Flash without breaking the html formating.

datter

Last edited by datter; 04-10-2006 at 02:11 PM.
datter is offline   Reply With Quote
Old 04-10-2006, 02:27 PM   #3
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

Or in fact... %26lt;
oldnewbie is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading images into dynamic text boxes mprovojr ActionScript 2.0 5 10-09-2007 06:10 PM
Controlling Dynamic Text length fahadbht ActionScript 2.0 5 02-02-2007 11:14 PM
Dynamic Text html and scroll dke01 ActionScript 1.0 (and below) 2 07-23-2004 05:40 AM
having a problem with html tags in a dynamic text box (some php knowledge needed) Sieg Simple Stuff (Newbies) 1 12-05-2003 10:00 AM
If anyone's bored, a custom class . . . retrotron ActionScript 1.0 (and below) 22 05-24-2003 10:01 PM


All times are GMT. The time now is 09:05 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.