Accept row for function h2 and h1

This commit is contained in:
Dany De Bontridder 2013-12-21 12:45:51 +00:00
parent f6268eee46
commit 168cee87d4

View file

@ -63,11 +63,11 @@ function h2info($p_string)
return '<h2 class="info">' . htmlspecialchars($p_string) . '</h2>';
}
function h2($p_string, $p_class)
function h2($p_string, $p_class="",$raw="")
{
return '<h2 ' . $p_class . '>' . htmlspecialchars($p_string) . '</h2>';
return '<h2 ' . $p_class . '>' . $raw.htmlspecialchars($p_string) . '</h2>';
}
function h1($p_string, $p_class)
function h1($p_string, $p_class="")
{
return '<h1 ' . $p_class . '>' . htmlspecialchars($p_string) . '</h1>';
}