From f857093ca98c784c01064f30b5ab08e68d98a868 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 15 Feb 2007 01:47:00 +0000 Subject: Added empty alt tag to make validator happy --- html.class | 2 +- tests/html.t | 2 +- 2 files changed, 2 insertions(+), 2 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) . "" . it_html::sanitize($tail); + $result .= it_html::sanitize($head) . "\"\"" . it_html::sanitize($tail); } else if ($tag = it::match("(.*)<(br)[^>]*>(.*)", $html)) { diff --git a/tests/html.t b/tests/html.t index 071685e..965e4a1 100755 --- a/tests/html.t +++ b/tests/html.t @@ -85,7 +85,7 @@ is(

Wolken

'), - ' swisspics posted < < ä & yesterday a photo tag missmatch:

', + ' swisspics posted < < ä & yesterday a photo tag missmatch:

', 'it_html::sanitize tag soup' ); -- cgit v1.2.3