function _recipe_prepare_plain_text in Recipe 8.2
Prepares content for display in plain text recipe formats.
Removes HTML tags and encodes the ° symbol.
1 call to _recipe_prepare_plain_text()
- template_preprocess_recipe_view_plain_text in ./
recipe.module - Prepares variables for the plain text style template.
File
- ./
recipe.module, line 250 - Contains functions for Recipe node CRUD and display.
Code
function _recipe_prepare_plain_text($string) {
$string = strip_tags($string);
$string = str_replace("°", "", $string);
return trim($string);
}