str::unhtml($string)

Removes all html tags and encoded chars from a string

  • $string (string)
  • return (string)
    The html string

Example

<?php
echo str::unhtml('some <em>crazy</em> stuff');

// output: some crazy stuff