-
Notifications
You must be signed in to change notification settings - Fork 19
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
Possible to add option to validate HTML fragments? #150
Comments
I can look into it :-) Can you give me some example code to make it clear what you want to validate? |
My 2 cents:
|
My idea is to wrap the fragments in This would work if fragments = parts of html. |
I think the base template has to be a bit more complicated than that. <!doctype html><html lang=""><head><title>fragment</title></head><body>
<!-- insert fragment -->
</body></html> |
Yeah, that's the minimum for a valid document. |
Can you give me some example code to make it clear what you want to
validate?
I've written a Node app to convert SRT captions
<https://en.wikipedia.org/wiki/SubRip> to 'readable' HTML.
I would like to be able to offer the output as a complete document, or as a
'fragment', i.e. just the content.
…On Sat, 13 Jul 2019 at 22:24, Geir Gåsodden ***@***.***> wrote:
Yeah, that's the minimum for a valid document.
I don't think it would require much effort to add this functionality
either.
I'll look at it tomorrow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#150?email_source=notifications&email_token=AABSDKTTXVUQ5UW5N34QPXDP7JBYJA5CNFSM4ICGRBR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3ZUOY#issuecomment-511154747>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABSDKTEMWHOVPQ26LRZTODP7JBYJANCNFSM4ICGRBRQ>
.
|
Just released version 4.1.0 Now you can add fragments as Hope this works out for you use case @samdutton |
Wow — that was quick! Thank you.
…On Sun, 14 Jul 2019 at 10:58, Geir Gåsodden ***@***.***> wrote:
Just released version 4.1.0
Now you can add fragments as data and set isFragment to true.
Hope this works out for you use case @samdutton
<https://github.com/samdutton>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#150?email_source=notifications&email_token=AABSDKUIZLMKDDW4OXFZMCDP7L2ETA5CNFSM4ICGRBR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4CB3I#issuecomment-511189229>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABSDKSL26WI6EXN6C6G2NDP7L2ETANCNFSM4ICGRBRQ>
.
|
Not sure if this is possible, but I'd love to be able to use this to validate HTML fragments as well as complete documents.
Great module, by the way — thanks!
The text was updated successfully, but these errors were encountered: