|
| |
User Groups : Forums : SiteExperts :
Dynamic HTML
:  | Determining the text length of a formated HTML text Hi !
Please, help me! I want to determine dynamically the length of a formated HTML string.
For example, having the string:
myStr = "Hello there!";
the return value must be 12, NOT 49
Thanks!
Started By mad_horax on Oct 30, 2007 at 12:36:04 AM This message has been edited. |  | | 4 Response(s) | Reply |
| Earlier Replies | Replies 4 to 4 of 4 | Later Replies |  | | bod1467 on Oct 31, 2007 at 12:56:44 AM (# 4) You need a regular expression to remove everything between < and > characters (including them). The only caveat is if the string itself uses one of these characters ... e.g.
myStr = "20 is > 10";
This page gives an example.
| | Earlier Replies | Replies 4 to 4 of 4 | Later Replies |
To respond to a discussion, you must first logon.
If you are not registered, please register yourself to become a member of the SiteExperts.community.
|