From 7435e3bc32c55391c4b6fcbd82f0ae7763656894 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 03 Nov 2009 12:41:54 -0500
Subject: [PATCH] - fix empty A tag handling (#1486272)

---
 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 01b0488..fb2533b 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -87,7 +87,7 @@
   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');
+  static $block_elements = array('div', 'p', 'pre', 'blockquote', 'a');
   
   /* State for linked objects in HTML */
   public $extlinks = false;

--
Gitblit v1.9.1