Initial commit.

This commit is contained in:
2026-03-10 21:25:26 +08:00
commit 78739bf725
3089 changed files with 472990 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
// File name: htmlchar.inc.php
// Description: PHP subroutines about HTML character entities
// Date: 2002-08-13
// Author: imacat <imacat@pristine.com.tw>
// Copyright: Copyright (C) 2002-2007 Pristine Communications
// h: Shortcut to htmlspecialchars()
function h($a)
{
return htmlspecialchars($a);
}
// dh: Reverse htmlspecialchars()
function dh($a)
{
$a = str_replace("&lt;", "<", $a);
$a = str_replace("&gt;", ">", $a);
$a = str_replace("&quot;", "\"", $a);
$a = str_replace("&amp;", "&", $a);
return $a;
}
?>