Carriage return and html

2004-01-16 Thread Vidar Langberget
I know how to parse carriage returns and replace it with , but I need a bit more advanced logic. The problem is that the text I need to parse contains both carriage returns and some basic html. For example headings use Heading and there are a few html tables as well. The tables are the biggest prob

Re: Carriage return and html

2004-01-20 Thread John Smith
Declare an integer variable, increment it each time that you find a tag, decrement when you find a . Only output a if the variable is zero. This will correctly handle nested tables. Depending on the source of your HTML, you may need to ensure that is also handled - HTML is not case sensitive