nburka/Emogrifier — pull request #3 by vanderlee (2013-05-19 18:26:38+00:00)
Title: Exclude selectors

Adds a method to exclude certain selectors from being changed by Emogrify.
I use this in an online webpage editor to make sure specific mixed-in UI parts remain untouched because they are styled otherwise.

css
`div { color: red }`

html
`

Test

`

result normally
`

Test

`

result after `addExcludeSelector('.exclude')`
`

Test

`

result after `addExcludeSelector('.exclude *')`
`

Test

`

result after `addExcludeSelector('.exclude *,.exclude')`
`

Test

`