PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Jaroslaw Miazga   Html Hidder   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of using this class
Class: Html Hidder
Obfuscate HTML using JavaScript
Author: By
Last change:
Date: 12 years ago
Size: 521 bytes


Class file image Download
/* Example of using HtmlHidder by Jaroslaw Miazga */

require 'HtmlHidder.php';

/* Html code */
$htmlSource = <<<S
<div class="a">
     <div class="b">
         <br />
         <span>Some text....</span>
         <div class="c">
             <a href="#" title="ssss">Some link</a>

$html = new HtmlHidder();

/* We are displaying hidded code in textarea - easy way to furthest copy */
echo '<textarea>'.$html->hide().'</textarea>';