better handling of bad HTML in tables
fixed real HTML comment in script element, using the parent to add CSS to replace center, added the loncapa element to fix paragraphs inside