Giter Club home page Giter Club logo

kses's Issues

oop php5 deprecated on 5.5+ versions

Hi, it seems that some bits of the code were deprecated in 5.6 and 5.5 versions.

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/...path.../php5.class.kses.php on line 542

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/...path.../php5.class.kses.php on line 158

oop php 5 "Undefined variable: string2"

Hi,
Decided to give this class a try and after using parse on an "a" tag that has a "href" attribute with http link it gives me an error:

Notice: Undefined variable: string2 in /*****/php5.class.kses.php on line 958

I'm I right to assume that that $string2 should be $string?

Thanks.

Just found your repo on here, and wanted to say thank you for creating the kses project, and taking it back up again. Your project has been a life saver for many people, and sites over the years.

I'm currently using a modified (I minified, and included html5 cleaning) in my own project, LibreCMS.

Not Working in PHP 7

Warning: preg_replace_callback(): Requires argument 2, 'kses_normalize_entities2("\1")', to be a valid callback in F:\xampp\htdocs\XSS\kses-master\kses.php on line 522

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\xampp\htdocs\XSS\kses-master\kses.php on line 81

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.