jgarber / redcloth

RedCloth is a Ruby library for converting Textile into HTML.

redcloth / spec / fixtures / filter_pba.yml
100644 21 lines (20 sloc) 0.893 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
name: filter styles
in: "p{color:red}. Test"
style_filtered_html: "<p>Test</p>"
---
name: filter classes
in: "p(myclass). Test"
class_filtered_html: "<p>Test</p>"
---
name: filter ids
in: "p(#myid). Test"
id_filtered_html: "<p>Test</p>"
---
name: correct application of double quote entity when using styles
in: 'p{background: #white url("../chunky_bacon.jpg")}. The quick brown "cartoon" fox jumps over the lazy dog'
html: '<p style="background: #white url(&quot;../chunky_bacon.jpg&quot;);">The quick brown &#8220;cartoon&#8221; fox jumps over the lazy dog</p>'
---
name: correct application of single quote entity when using styles
in: "p{background: #white url('../chunky_bacon.jpg')}. The quick brown 'cartoon' fox jumps over the lazy dog"
html: '<p style="background: #white url(&#39;../chunky_bacon.jpg&#39;);">The quick brown &#8216;cartoon&#8217; fox jumps over the lazy dog</p>'