Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-12-10 05:14:17

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

ray

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

#2 2005-12-10 05:15:56

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: ray

Sorry, this should be titled GetHtml!

Offline

#3 2005-12-11 03:59:31

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: ray

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

#4 2005-12-11 23:01:17

wymsy
Xinha Community Member
From: Massachusetts, USA
Registered: 2005-04-01
Posts: 44
Website

Re: ray

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

Board footer

Powered by FluxBB