Skip to content
This repository
Browse code

Do not replace contents of <style> blocks.

  • Loading branch information...
commit 844ce0e21936a9264f8fbedb1a946c738dc4c97a 1 parent 23d4fcd
Chad Weider authored November 25, 2011
4  html/html_smartypants.c
@@ -264,8 +264,8 @@ smartypants_cb__dquote(struct buf *ob, struct smartypants_data *smrt, uint8_t pr
264 264
 static size_t
265 265
 smartypants_cb__ltag(struct buf *ob, struct smartypants_data *smrt, uint8_t previous_char, const uint8_t *text, size_t size)
266 266
 {
267  
-	static const char *skip_tags[] = {"pre", "code", "kbd", "script"};
268  
-	static const size_t skip_tags_count = 4;
  267
+	static const char *skip_tags[] = {"pre", "code", "kbd", "script", "style"};
  268
+	static const size_t skip_tags_count = 5;
269 269
 
270 270
 	size_t tag, i = 0;
271 271
 
1  html_block_names.txt
@@ -19,6 +19,7 @@ table
19 19
 figure
20 20
 iframe
21 21
 script
  22
+style
22 23
 fieldset
23 24
 noscript
24 25
 blockquote

0 notes on commit 844ce0e

Please sign in to comment.
Something went wrong with that request. Please try again.