Posted By

Roen on 03/19/11


Tagged

zend-framework


Versions (?)

Zend Framework - Remove markup from bbcode


 / Published in: PHP
 

  1. public function bbcodeAction()
  2. {
  3. $bbcode = Zend_Markup::factory('Bbcode');
  4. $remover = array(
  5. //'b',
  6. //'i',
  7. 'cite',
  8. 'del',
  9. 'ins',
  10. 'sup',
  11. 'sub',
  12. 'span',
  13. 'acronym',
  14. 'url',
  15. 'h1',
  16. 'img',
  17. );
  18. foreach ($remover as $remove) {
  19. $bbcode->removeMarkup($remove);
  20. }
  21. }

Report this snippet  

You need to login to post a comment.