This is an example of HTML code."; $stripped_text = strip_tags($html); $short_text = limit_chars($stripped_text, 10); echo $short_text; // Outputs "This is an" ?>The "limit_chars" function is a part of the PHP Standard Library, meaning that it is available in all PHP installations.