How can I allow <source> tags through rails 4 sanitize?
问题 I've been using the sanitize method in a Rails 4 app to scrub a page which displays html that users generate to prevent unsafe things like script injection. So I have a view that looks like: sanitize @user_input Right now I'm having issues when uses are entering video tags with a source tag under it like so: <video><source src="foo.bar"></video> Unfortunately it looks like sanitize is stripping out the source tag so videos are no longer working. How do I use sanitize so it allows source tags?