#1 Modified kses with 'colon' and 'lone <' bugs fixed

open
nobody
None
5
2007-07-12
2007-07-12
Alpha2zee
No

Slightly modified version of Kses 0.2.2 with improved speed, fixed bugs like the colon bug, and extra features. This version is being used a forthcoming release of LabWiki software (bioinformatics.org/phplabware).

Changes:

* File-size reduced ~50% to 9 kb - smaller variable names; small functions instead coded inline

* Expanded allowed protocols so attributes in style, like "border: 1px", are possible; only safe values added (see feedvalidator.org/docs/warning/DangerousStyleAttr.html)

* Option to replace unallowed tags (and contents) with entitified values, instead of being removed altogether

* Lowercase entities of type &#Xnn; for XML compliance

Testing:

* File test.php accompanies

Discussion

1 2 3 > >> (Page 1 of 3)
  • Alpha2zee
    Alpha2zee
    2007-07-12

    Logged In: YES
    user_id=1065794
    Originator: YES

    Also:

    * Attributes declared only once in output
    * Lowercased tag and attribute names in output
    * Valueless attributes get values for XHTML compliance
    * Tags like '<img src="x"/>' without space before closing '/>' are corrected and not made empty
    File Added: kses_labwiki_12Jul07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-07-13

    Logged In: YES
    user_id=1065794
    Originator: YES

    File Added: kses_labwiki_12Jul07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-07-15

    Logged In: YES
    user_id=1065794
    Originator: YES

    Labwiki-modified kses 0.2.2, of 16 July 2007: Further kses modification adds better checking of entities. Following go unfiltered, others are made non-entities (like '&this;' to '&amp;this;')

    * XHTML-specific named entities (like '&tilde;')
    * numerical entities in decimal or hexadecimal form valued < 65535, but not in character ranges (hex) 7F-84, 86-9F, or FDD0-FDDF
    File Added: kses_labwiki_16Jul07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-07-15

    Labwiki-modified kses 0.2.2, of 16 July 2007

     
  • Alpha2zee
    Alpha2zee
    2007-08-13

    Logged In: YES
    user_id=1065794
    Originator: YES

    Labwiki-modified kses 0.2.2, v1.1 of 14 August 2007, adds these extra features:

    * option to balance tags for HTML well-formedness
    * now there is no need to modify code that called the older kses() function as the new kses() will correctly identify the arguments passed to it

    File Added: kses_labwiki_1.1_14Aug07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-08-14

    Logged In: YES
    user_id=1065794
    Originator: YES

    File Added: kses_labwiki_1.1_14Aug07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-08-14

    Labwiki-modified kses 0.2.2, v1.1 of 14 Aug 2007

     
  • Alpha2zee
    Alpha2zee
    2007-08-14

    Logged In: YES
    user_id=1065794
    Originator: YES

    File Added: kses_labwiki_1.1_14Aug07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-08-15

    Logged In: YES
    user_id=1065794
    Originator: YES

    15 August 2007 release:

    * optional support to allow CDATA sections and comments
    File Added: kses_labwiki_1.1_15Aug07.zip

     
  • Alpha2zee
    Alpha2zee
    2007-08-15

    Labwiki-modified kses 0.2.2, v1.1 of 15 Aug 2007

     
1 2 3 > >> (Page 1 of 3)