PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/bblog/bBlog_plugins/modifier.htmlspecialchars.php

https://github.com/escherlat/loquacity
PHP | 58 lines | 16 code | 8 blank | 34 comment | 0 complexity | e9273a578f74a6959bd790aac60e547b MD5 | raw file
Possible License(s): AGPL-1.0
  1. <?php
  2. /**
  3. * ./bblog/bBlog_plugins/modifier.htmlspecialchars.php
  4. *
  5. * @package default
  6. */
  7. /*
  8. ** bBlog Weblog http://www.bblog.com/
  9. ** Copyright (C) 2003 Eaden McKee <email@eadz.co.nz>
  10. **
  11. ** This program is free software; you can redistribute it and/or modify
  12. ** it under the terms of the GNU General Public License as published by
  13. ** the Free Software Foundation; either version 2 of the License, or
  14. ** (at your option) any later version.
  15. **
  16. ** This program is distributed in the hope that it will be useful,
  17. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ** GNU General Public License for more details.
  20. **
  21. ** You should have received a copy of the GNU General Public License
  22. ** along with this program; if not, write to the Free Software
  23. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  24. */
  25. /**
  26. *
  27. *
  28. * @return unknown
  29. */
  30. function identify_modifier_htmlspecialchars() {
  31. return array (
  32. 'name' =>'htmlspecialchars',
  33. 'type' =>'smarty_modifier',
  34. 'nicename' =>'HTML Special Chars',
  35. 'description' =>'Converts HTML Special Chars to form-friendly entities',
  36. 'authors' =>'',
  37. 'licence' =>'',
  38. 'help' => ''
  39. );
  40. }
  41. /**
  42. *
  43. *
  44. * @param unknown $in
  45. * @return unknown
  46. */
  47. function smarty_modifier_htmlspecialchars($in) {
  48. return htmlspecialchars($in);
  49. }
  50. ?>