You are here

function strip_html_and_encode_entities in Recipe 7

Same name and namespace in other branches
  1. 6 recipe.module \strip_html_and_encode_entities()
  2. 7.2 recipe.module \strip_html_and_encode_entities()

Sanitizes a string and encodes the ° symbol.

3 calls to strip_html_and_encode_entities()
format_mastercook4_ingredient in includes/recipe_mastercook4.module
merge_template in includes/recipe_mastercook4.module
recipe_plaintext_export in includes/recipe_plaintext.module

File

./recipe.module, line 1809
Contains functions for Recipe node CRUD and display.

Code

function strip_html_and_encode_entities($string) {
  $string = filter_xss($string, array());
  $string = str_replace("°", "", $string);
  return $string;
}