You are here

public static function ShareaholicUtilities::clean_string in Share Buttons, Related Posts, Content Analytics - Shareaholic 7.3

Same name and namespace in other branches
  1. 8 utilities.php \ShareaholicUtilities::clean_string()

Cleans the string to be HTML safe

Given a string, it will:

  • Encode the string
  • Trim the string
  • lower case the string

Return value

String the cleaned string

1 call to ShareaholicUtilities::clean_string()
ShareaholicPublic::get_keywords_for in ./public.php
Get a list of tags for a piece of content

File

./utilities.php, line 568

Class

ShareaholicUtilities

Code

public static function clean_string($word) {
  return trim(trim(strtolower(trim(htmlspecialchars(htmlspecialchars_decode($word), ENT_QUOTES))), ","));
}