Hi,
i have a script i'm working on, a rich text box in DHTML which compiles the content in a hidden text field. I want to take it further to allow the number of characters to be counted, and i think the best way to do this is to take the length property of the compiled code from the hiddent text field on keypress. However this would include all the HTML tags e.g. <font face="verdana"> - so to remove these i need to convert the content of the field to a var, use a regexp to find all the <CONTENT> tags (anything within < and > ) and replace them with nothing - effectivly removing all the HTML content from the variable, and then rechecking its length. Can someone please tell me the regexp and replace command needed in javascript to remove ALL the HTML tags from a paragraph or so of HTML code
Thank
SP!KE