You are here

function img_assist_sanitize in Image Assist 5.3

Same name and namespace in other branches
  1. 5.2 img_assist.module \img_assist_sanitize()
  2. 6.2 img_assist.module \img_assist_sanitize()

Convert a node field value to text for usage in a textfield.

Related topics

2 calls to img_assist_sanitize()
img_assist_properties_form in ./img_assist.module
Construct the image properties form.
img_assist_token_values in includes/img_assist.token.inc
Implementation of hook_token_values().

File

./img_assist.module, line 847
Image Assist module

Code

function img_assist_sanitize($text) {
  return check_plain(trim(preg_replace("/[\r\n]+/", ' ', strip_tags($text))));
}