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

Add support for HTML #149

Open
nguyenhoan opened this issue Jul 19, 2017 · 3 comments
Open

Add support for HTML #149

nguyenhoan opened this issue Jul 19, 2017 · 3 comments

Comments

@nguyenhoan
Copy link
Contributor

No description provided.

@RobertHSchmidt
Copy link
Contributor

Jsoup doesn't recognize the <?php as a valid tag and treats imbedded php as a comment, I am checking for comments that begin with ?php and attempting to parse and visit the string in said comment. This works in some cases but not in all. Imbedded javascript and css work well, Jsoup recognizes the <script> and <style> tags.

@psybers
Copy link
Member

psybers commented Sep 14, 2017

What does it do with the <?= ... ?> short form echo tag (this is the same as <? echo ?>)? Also there is an option to enable short tags of the form <? but I think those are less common. http://php.net/manual/en/language.basic-syntax.phptags.php
http://php.net/manual/en/ini.core.php#ini.short-open-tag

@RobertHSchmidt
Copy link
Contributor

RobertHSchmidt commented Sep 14, 2017

It looks like Jsoup will default to comment for any <? type tag.
also if inside the imbedded php there is an html tag i.e echo jsoup will treat the tag and stuff following html tag as html not as a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants