-
Notifications
You must be signed in to change notification settings - Fork 68
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
remove HTML striptags #7
base: master
Are you sure you want to change the base?
Conversation
I think this could be considered a breaking change? |
Breaking, how so? Seems YT already strips all tags in their API except I think it was only bumped to minor version .0.0.1 when HTML stripping was added. This is not a request that should be merged, but just sharing what I did, like a good open-source user. :) |
Hey 👋 Thanks for the contribution, I think we should expose this with an option so it doesn't break the existing applications using this module. |
Do you mean leaving in |
I'm still not sure how to strip all tags while keeping the codebase small as possible....
|
That makes sense too @tomByrer, keep us updated! |
@tomByrer, what do you think of taking over the project? I think the most straightforward would be that we deprecate ours and you publish your own? |
Since Maybe I should just make a PR to remove lodash, you can have a last release for the people who still use this, then archive it with a link to mine? |
If you make a simple PR just to remove lodash we can definitely review that, but a whole rewrite will take a bit of time, in which case having a totally different fork is easier I think |
I removed
striptags
since I wanted to keep the<b><i><u>
formatting. But, I did remove all the<font>
tags, since I've usually only seen spammy auto-generated colorization and almost never YouTube caption uploaders bother with font colors. I haven't seen other formatting in captions from the API, so don't have to worry about other markup, including malicious.BTW, YouTube doesn't use their API nor most formatting from other formats, they seem to use use their own formatting. Any uploads & in-app edits are heavily filtered, unless you use their magic format.
I updated the test to reflect my desires. Also made minor version updates in
package.json
.API remains the same, but slightly different outupt, so v1.1.0