├── example.php
├── README.md
└── HTML_Encrypt.php
/example.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 | Example
10 |
11 |
12 |
13 | Welcome Test Page
14 |
15 |
16 | ';
17 |
18 | echo HTML_Encrypt::encrypt($html);
19 |
20 | ?>
21 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | HTML_Encrypt
2 | ============
3 |
4 | HTML kodlarını şifreleme sınıfı
5 |
6 | Örnek Kullanımı
7 | ============
8 |
9 | ```php
10 |
15 |
16 |
17 |
18 | Example
19 |
20 |
21 |
22 | Welcome Test Page
23 |
24 |
25 | ';
26 |
27 | echo HTML_Encrypt::encrypt($html);
28 |
29 | /**
30 | output:
31 |
32 |
33 |
34 | **/
35 |
36 | ?>
37 | ```
38 |
--------------------------------------------------------------------------------
/HTML_Encrypt.php:
--------------------------------------------------------------------------------
1 | document.write(unescape("';
53 | $characters = self::utf8_split($html);
54 | foreach ( $characters as $character ){
55 | $hex .= '%' . dechex(self::utf8_ord($character));
56 | }
57 | $hex .= '"));';
58 | return $hex;
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------