summaryrefslogtreecommitdiff
path: root/html.class
diff options
context:
space:
mode:
authorChristian Schneider2007-02-15 01:47:00 +0000
committerChristian Schneider2007-02-15 01:47:00 +0000
commitf857093ca98c784c01064f30b5ab08e68d98a868 (patch)
tree834dca85d2fa0bf9f50e3c8062b4223b441e2aab /html.class
parentd356adc84daa5c8648a9f04bca60557789067026 (diff)
downloaditools-f857093ca98c784c01064f30b5ab08e68d98a868.tar.gz
itools-f857093ca98c784c01064f30b5ab08e68d98a868.tar.bz2
itools-f857093ca98c784c01064f30b5ab08e68d98a868.zip
Added empty alt tag to make validator happy
Diffstat (limited to 'html.class')
-rw-r--r--html.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.class b/html.class
index d1fb5d2..fd60a1d 100644
--- a/html.class
+++ b/html.class
@@ -254,7 +254,7 @@ function sanitize($html)
{
# Image tags, keeps only src attribute
list($head, $src, $tail) = $tag;
- $result .= it_html::sanitize($head) . "<img src=\"$src\" />" . it_html::sanitize($tail);
+ $result .= it_html::sanitize($head) . "<img src=\"$src\" alt=\"\" />" . it_html::sanitize($tail);
}
else if ($tag = it::match("(.*)<(br)[^>]*>(.*)", $html))
{