Limiting Inclusion of HTML Tags in Output

When you add HTML code to your output, as in the previous example, those same tags turn up, usually as text, in every output destination. For example, if the code in the previous example were used to generate RTF output, the HTML tags would be passed through as text to the RTF destination, creating the table shown in Figure 3.34. The word processor does not recognize the HTML tags as anything but text.

There are two ways you could solve the problem. The first method is to run the program twice. The first submission creates your HTML table, and the second submission creates your RTF table after you remove the embedded HTML tags from the code.

For the second method, you only need to run the program once ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.