|
Cannot figure out how to install February 01, 2012 09:02PM |
Registered: 1 year ago Posts: 4 |
I feel like I am the dimmest bulb in the box! I cannot follow the install directions.
1. I am using PHP 5.3.8
2. I downloaded the zip for the Standalone option and unzipped
3. I created a directory called "library" at /home/mysite/library
4. Inside the library folder I placed the "standalone" folder and the "HTMLPurifier.standalone.php" file
That is all I did on the server install
On my test page I added the following:
1. require('/home/mysite/library/HTMLPurifier.standalone.php'); below the body tag
2. Below that I added the following
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
$clean_html = $purifier->purify($dirty_html);
3. After my test code I added < script >alert('XSS!');< /script >
That is all I did. I have a gut feeling I am way off....
Any help appreciated!
|
Re: Cannot figure out how to install February 02, 2012 07:54AM |
Admin Registered: 6 years ago Posts: 2,636 |