this is the only we could work it out...and then we would have to re-regex
them back into what they were etc....then do the count...in the end we just
said "no, you cant have it"

-----Original Message-----
From: Douglas Humphris [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 13:07
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] HTML word count


You could use regex to strip out everything that matches <...> and
&...;, then replace the line breaks for spaces.

Douglas

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED] 
Sent: 10 July 2003 12:50
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] HTML word count

We were requested to do just the same but we use eWebEditoPro...we
couldnt
really think of a way around it except using javascript etc.... and also
we
didnt really want to spend too much time on it as we didnt have access
to
the components methods.

We use JS most of the time,  but as you say the crappy &ing is a real
pain.



-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED]
Sent: 10 July 2003 12:50
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] HTML word count


Hi,
I have a requirement to count the number of words the user enters into
activedit (for translation purpose). We use activedit as our wysiwyg
editor
.As it is HTML content we would first need to strip out the HTML tags
and
then do the word count. I have searched macromedia exchange for any
tags/
functions which count words in HTML format. I have tried stripping out
HTML
and counting words but it is not perfect as there are some spaces, line
breaks and some characters (eg &nbsp;) which remain in the converted
text
causing incorrect count.
Please could anyone suggest a alternative method or existing
function/tag
which would help me. 


Thanks in advance,
Sandeep


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to