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

bare html #2

Open
rodrigolive opened this issue Aug 9, 2011 · 1 comment
Open

bare html #2

rodrigolive opened this issue Aug 9, 2011 · 1 comment

Comments

@rodrigolive
Copy link

Hello,
I think it would be a good idea to idea to have Text::Markup return the bare response from each parser, ie, no wrapping it around <html> tags.

cheers,
-rodrigo

@theory
Copy link
Owner

theory commented Aug 10, 2011

Want to write a patch to add an option for this?

theory pushed a commit that referenced this issue May 10, 2016
This adds a `raw` option that can be passed to `parse()` that causes the
parser to return the raw output of the underlying layer, without
wrapping in the minimal HTML skeleton.

This is only possible for a subset of the existing parsers; this patch
makes no attempt to remove the HTML wrappers in the cases where that
wrapper is being added by the underlying parser.

Note also that this patch does not add any tests for this new behavior,
because there don't appear to be any cases where input/output
transformations are actually being currently tested.
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

2 participants