Skip to content

Commit

Permalink
Adding object, applet, and embed to the list of things to not auto-p …
Browse files Browse the repository at this point in the history
…inside of or around.
  • Loading branch information
coderforlife committed Nov 8, 2012
1 parent 74726ef commit 3570185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions classes/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,14 @@ public static function autop( $value )
// should never autop ANY content in these items
$no_auto_p = array(
'pre','code','ul','h1','h2','h3','h4','h5','h6',
'object','applet','embed',
'table','ul','ol','li','i','b','em','strong','script', 'dl', 'dt', 'dd'
);

$block_elements = array(
'address','blockquote','center','dir','div','dl','fieldset','form',
'h1','h2','h3','h4','h5','h6','hr','isindex','menu','noframes',
'object','applet','embed',
'noscript','ol','p','pre','table','ul','figure','figcaption'
);

Expand Down

0 comments on commit 3570185

Please sign in to comment.