Do not replace contents of <style> blocks.

This commit is contained in:
Chad Weider 2011-11-25 13:43:16 -08:00
parent 23d4fcda11
commit 844ce0e219
2 changed files with 3 additions and 2 deletions

View file

@ -264,8 +264,8 @@ smartypants_cb__dquote(struct buf *ob, struct smartypants_data *smrt, uint8_t pr
static size_t
smartypants_cb__ltag(struct buf *ob, struct smartypants_data *smrt, uint8_t previous_char, const uint8_t *text, size_t size)
{
static const char *skip_tags[] = {"pre", "code", "kbd", "script"};
static const size_t skip_tags_count = 4;
static const char *skip_tags[] = {"pre", "code", "kbd", "script", "style"};
static const size_t skip_tags_count = 5;
size_t tag, i = 0;

View file

@ -19,6 +19,7 @@ table
figure
iframe
script
style
fieldset
noscript
blockquote