You are not logged in.
Pages: 1
Can anyone explain what the GetHtml plugin actually does and why or if one should use it?
One thing I noticed (actually my boss) and I found a little distrcting that it gives links some empty attributes (target, title) which make the document not validate
Offline
GetHtml provides a speedier means of taking the HTML from Xinha and putting it back into your editor before you submit the form or switch to "source" mode. The built in method works by traversing the DOM of the html being edited, which is a fairly slow operation, but easy to read/understand, maintain and modify, while GetHtml works with a bunch of regular expressions and such, which is fast, but more difficult to code.
James Sleeman
Offline
Perhaps more important than the speed is that GetHtml produces XHTML-formatted code, and it supports some tags that are not handled properly by the built-in method. Specifically, Flash is supported (in <object> and <embed> tags), scripts are supported, and formatting of the text within <script> and <pre> tags is preserved. Also, the HTML output is formatted and indented for both IE and Mozilla-based browsers in GetHtml, where the built-in method only formats IE. Not everyone needs all these improvements, and GetHtml could still be viewed as experimental, although I am using it in a production environment with no problems.
Offline
Pages: 1