Pasing HTML tags

Results 1 to 2 of 2

Thread: Pasing HTML tags

  1. #1
    Join Date
    Dec 1969

    Default Pasing HTML tags

    Could anyone point me to a page, or provide the code, to get the length of a given text minus the HTML tags (including white space)?<BR><BR>Example:<BR><BR>This is my text.<BR>- 16 characters<BR><BR>This is my &#060;b&#062;text&#060;/b&#062;.<BR>- 22 actual character, but only 16 displable characters.<BR><BR><BR>Thanks.<BR>Conrad

  2. #2
    Join Date
    Dec 1969

    Default Look for code...

    ...that uses regular expressions to zap out all HTML tags. Pass your string into that and out comes what you need.<BR><BR>You don&#039;t say where you need to do this--server or client--so I won&#039;t take it further than that.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts