auto_typography()

auto_typography($str[, $reduce_linebreaks = FALSE])

Parameters:
  • $str (string) – Input string
  • $reduce_linebreaks (bool) – Whether to reduce multiple instances of double newlines to two
Returns:

HTML-formatted typography-safe string

Return type:

string

Formats text so that it is semantically and typographically correct HTML.

This function is an alias for CI_Typography::auto_typography(). For more info, please see the Typography Library documentation.

Usage example:

$string = auto_typography($string);

Note

Typographic formatting can be processor intensive, particularly if you have a lot of content being formatted. If you choose to use this function you may want to consider caching your pages.

doc_CodeIgniter
2016-10-15 16:30:52
Comments
Leave a Comment

Please login to continue.