Giter Club home page Giter Club logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Hey, I reckon this is a nasty hack and might cause problems with certain code, 
but as I just needed for 1 specific issue and I'm around the clock here, I 
wanted to share my temp solution (If I ever come back at this and build a more 
elegant solution, for sure I'll post it here!)

gan_tokenizer.php, at next_pos function, right after $str = substr...  I added 
a check to see if the contained string has a <, if it does, then just looks for 
the closing tag: ?>. moves the pos right after that one, then continues:

if ($problem = stripos($str,'<') !== false) { // Found a <
    $newpos = stripos($this->doc, '?>', $this->pos + 1);
    $p = stripos($this->doc, $needle, $newpos);
    $len = $p - $this->pos - 1;
    if ($len > 0) {
        $str = substr($this->doc, $this->pos + 1, $len);
    }
}

And I also took out the htmlspecialchars from attributes_toString function (do 
you guys really need it there?)

Anyway, ganon is GREAT! I can't thank you enough for your effort.

Original comment by [email protected] on 8 Jul 2014 at 4:38

from ganon.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 27, 2024
Hi, this is not fault. Input format for ganon should be HTML file, not template 
file.
This is not defect.

Original comment by [email protected] on 28 Jul 2014 at 5:54

from ganon.

Related Issues (20)

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.