ekalinin / typogr.js

Typography utils for javascript
MIT License
297 stars 20 forks source link

Don't wrap ampersands inside of the ignored tags. #22

Closed JoshOldenburg closed 9 years ago

JoshOldenburg commented 9 years ago

This will ignore an ampersand if it is inside of a tag matched by /<(\/)?(pre|code|kbd|script|math|title)[^>]*>/i. Previously, ampersands inside of script tags would be wrapped. This also adds a test.

ekalinin commented 9 years ago

Thanks!