<?php

/* CLASS FILE
----------------------------------*/

class tags {

  // List of allowed tags for WYSIWYG content display
  // Leave empty to allow all tags (not recommended)
  const ALLOWED_TAGS = [
    '<p>','<blockquote>','<h1>','<span>','<h2>','<h3>','<h4>',
    '<b>','<br>','<i>','<strike>','<sup>','<sub>','<a>','<img>',
    '<ul>','<li>','<ol>','<div>','<iframe>','<font>'
  ];

  public static function filter($data) {
    return strip_tags((string) $data, tags::ALLOWED_TAGS);
  }

}

?>