Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML + JS detected as PHP??? #10

Closed
toxyl opened this issue Jan 31, 2017 · 1 comment
Closed

HTML + JS detected as PHP??? #10

toxyl opened this issue Jan 31, 2017 · 1 comment

Comments

@toxyl
Copy link

toxyl commented Jan 31, 2017

I've just installed and set up your port which I'll be using for PHP, JS, CSS, HTML and SQL, but one of my very first test cases failed to be properly detected: <script>alert("XSS")</script> is neither detected as HTML nor as JavaScript, but instead as PHP. And the returned code uses &lt; and &gt; rather than < and > which looks rather ugly... so I was wondering if this is a feature I can turn off?

@toxyl
Copy link
Author

toxyl commented Jan 31, 2017

Ohh, nevermind. Looks like it's a problem with the Markdown parser running on the source before applying the syntax highlight.

@toxyl toxyl closed this as completed Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant