diff options
author | alecpl <alec@alec.pl> | 2010-12-23 17:16:03 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-12-23 17:16:03 +0000 |
commit | 4d268b1fae73ae5c38a5f75117c8757d2cf5cf27 (patch) | |
tree | dd3d93af7808ce5b871119c4d936b11cc186f3a5 | |
parent | ceb7085c45f85a4a6dea395fbc2f94ca730513aa (diff) |
- Don't return empty I and B tags in short form
-rw-r--r-- | program/lib/washtml.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php index f2bbf72bf..7f49fec28 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -89,7 +89,7 @@ class washtml static $html_attribs = array('name', 'class', 'title', 'alt', 'width', 'height', 'align', 'nowrap', 'col', 'row', 'id', 'rowspan', 'colspan', 'cellspacing', 'cellpadding', 'valign', 'bgcolor', 'color', 'border', 'bordercolorlight', 'bordercolordark', 'face', 'marginwidth', 'marginheight', 'axis', 'border', 'abbr', 'char', 'charoff', 'clear', 'compact', 'coords', 'vspace', 'hspace', 'cellborder', 'size', 'lang', 'dir'); /* Block elements which could be empty but cannot be returned in short form (<tag />) */ - static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong'); + static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a', 'font', 'center', 'table', 'ul', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'ol', 'dl', 'strong', 'i', 'b'); /* State for linked objects in HTML */ public $extlinks = false; |