canvas-lms/gems/html_text_helper
Dave Gynn a5744cdf59 Permit data-* attributes in HTML content
This PR allows data-* attributes in HTML to pass the santization process.
For example, this allows integration with Embedly if the content includes
HTML such as...
<a class="embedly-card" href="http://www.instructure.com/" data-card-controls="0" data-card-type="article">Instructure</a>
...and the appropriate JS is loaded.

Test Plan:
- Edit a wiki page using the HTML editor and enter custom HTML5 code that includes data attributes
- Verify the attributes exist in the HTML when the page is rendered

Note: This is minor version upgrade to sanitize. It does not upgrade to 3.x or 4.x
which could introduce more changes.
2016-04-20 10:15:58 -07:00
..
lib don't escape urls in notifications for new conversation messages 2016-03-16 13:04:20 +00:00
spec don't escape urls in notifications for new conversation messages 2016-03-16 13:04:20 +00:00
.rspec extracted html text helper methods into gem 2014-02-07 20:11:19 +00:00
Gemfile remove rails 3 support 2015-12-23 21:36:43 +00:00
html_text_helper.gemspec Permit data-* attributes in HTML content 2016-04-20 10:15:58 -07:00
test.sh simplify gem test harnesses 2016-01-19 17:52:58 +00:00