Changes between Version 6 and Version 7 of Documentation/Plugins/GetHtml


Ignore:
Timestamp:
02/09/07 12:18:52 (13 years ago)
Author:
ray
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Plugins/GetHtml

    v6 v7  
    1 GetHtml is a replacement for the getHTML() function in htmlarea.js. It offers several improvements over the original, including: 
     1!GetHtml is a replacement for the getHTML() function in htmlarea.js. It offers several improvements over the original, including: 
    22 
    33 * Produces valid XHTML code 
    4  
    54 * Formats code in HTML view in indented, readable format. 
    6  
    75 * Much faster than HTMLArea.getHTML() 
    8  
    96 * Eliminates many hacks to accomodate browser quirks 
    10  
    117 * Returns correct code for Flash objects and scripts 
    12  
    138 * Preserves formatting inside script and pre tags 
    149 
    15 It is provided as a plugin to make installation and comparisons between the plugin and the original easy. The intention is eventually to make this a permanent part of htmlarea.js, in place of the original function. 
     10You can enable this by setting [wiki:Documentation/ConfigVariablesList#xinha_configgetHtmlMethod xinha_config.getHtmlMethod] to "TransformInnerHTML" 
    1611 
    17 GetHtml was developed by Nelson Bright and is under htmlArea license. 
     12!GetHtml was developed by Nelson Bright and is under htmlArea license. 
    1813It is based on the XML_Utility functions submitted in Ticket #253 by troels_kn, who gives credit also to adios, who helped with the regular expressions: http://www.sitepoint.com/forums/showthread.php?t=201052