This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I use Print to HTML with the attached source file, I get the attached HTML file, which uses ' Is ' legal HTML? Firefox renders it okay, but InternetExplorer (IE) 6 does not. :-( Seems unfortunate that the IDE generates HTML that can't be rendered correctly by InternetExplorer.
Created attachment 29504 [details] sample source file
Created attachment 29505 [details] sample output
It seems the 'apos' is standard html/xhtml entity, see e.g. http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent . The issue is probably on IE's side.
Perhaps it's IE bug. But if we can workaround it easily, like using hexa code for apos, then we should do it. Not many users complain, but the cost of the fix is low
The ' is still used in a dev build.
Using ' instead of '. I am not sure if the fix make any sense. IE7 can probably handle ' correctly, plus I actually don't understand why we need to escape apostroph and quote charactres at all. They can't do any harm when enclosed by <span>...</span>, can they? Anyway, here's the fix. Checking in HtmlPrintContainer.java; /cvs/editor/src/org/netbeans/modules/editor/HtmlPrintContainer.java,v <-- HtmlPrintContainer.java new revision: 1.10; previous revision: 1.9 done
*** Issue 109958 has been marked as a duplicate of this issue. ***