Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@keithics
Copy link

@keithics keithics commented May 7, 2014

Strip tags except tags specified.
credits from php.js

S('<p>just <b>some</b> text</p>').allowTags('<p>')
output:
<p>just some text</p>

keithics added 2 commits May 7, 2014 11:56
this is similar to strip_tags of php
min
@keithics keithics mentioned this pull request May 7, 2014
@jprichardson
Copy link
Owner

Please include a test with multiple tags allowed. Thanks!

@keithics
Copy link
Author

Done. sorry I didnt notice your comment until now.

@jprichardson
Copy link
Owner

Github won't let me automerge this. I could copy in the changes, but it won't show that you committed or you could rebase. Also, don't include the minified file. Then everything should be good! Thanks!

@keithics
Copy link
Author

keithics commented Aug 6, 2014

no worries 😄

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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.