-
Notifications
You must be signed in to change notification settings - Fork 43
Add StripTags sniff and amend rulesets and existing sniffs #257
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 StripTags sniff and amend rulesets and existing sniffs #257
Conversation
|
Background: WPCS code added a straight replacement suggestion if #133 says that using The first warning in this PR basically matches that from WPCS. The second recomends cc @jrfnl in case this would be suitable for WPCS. |
|
@GaryJones WPCS does not recommend using Adding a suggestion for using On another note: please open issues in WPCS with these kind of questions/suggestions so they can be discussed in the proper place and other people can pitch in as well. |
|
@jrfnl Thanks :-)
@rebeccahum Based on the above, I think it would be better see about opening a PR on WPCS for the same end result, and if successful. closing out this PR unmerged. |
I'm not sure such a PR should be accepted to WPCS as |
|
@GaryJones Should we change it where if there's a second parameter passed in, the sniff doesn't error/warning? |
That's what the current WPCS code does already I believe. |
Well, the issue is two fold. First of all, More obvious example: So, in case we want to preserve some HTML in WordPress.com VIP world, we would use |
This resolves #133.
What this PR does: