|
|
@ -171,7 +171,7 @@ class washtml
|
|
|
|
$key = strtolower($key);
|
|
|
|
$key = strtolower($key);
|
|
|
|
$value = $node->getAttribute($key);
|
|
|
|
$value = $node->getAttribute($key);
|
|
|
|
if(isset($this->_html_attribs[$key]) ||
|
|
|
|
if(isset($this->_html_attribs[$key]) ||
|
|
|
|
($key == 'href' && preg_match('/^(http|https|ftp|mailto):.+/i', $value)))
|
|
|
|
($key == 'href' && preg_match('/^(http:|https:|ftp:|mailto:|#).+/i', $value)))
|
|
|
|
$t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
|
|
|
|
$t .= ' ' . $key . '="' . htmlspecialchars($value, ENT_QUOTES) . '"';
|
|
|
|
else if($key == 'style' && ($style = $this->wash_style($value)))
|
|
|
|
else if($key == 'style' && ($style = $this->wash_style($value)))
|
|
|
|
$t .= ' style="' . $style . '"';
|
|
|
|
$t .= ' style="' . $style . '"';
|
|
|
|