You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While your awesome script works perfectly in pure HTML files, when i try to run it on files containing PHP Code, all the <?php tags somehow get eliminated. I take it that the ? somehow interferes with regex syntax but that's just a guess.
The text was updated successfully, but these errors were encountered:
Hi, the script uses python's built in HTML parser instead of regexes. This means it can work with lightweight templating languages that can be parsed as HTML, for instance jinja or mustache. I suspect the HTML parser is throwing away the <?php tags, and potentially tripping over whatever is inside them, but I need to take a closer look. It might not be easily fixable, unfortunately.
While your awesome script works perfectly in pure HTML files, when i try to run it on files containing PHP Code, all the <?php tags somehow get eliminated. I take it that the ? somehow interferes with regex syntax but that's just a guess.
The text was updated successfully, but these errors were encountered: