Image source path - secure way which is the secure way of displaying the image_path in src ?

`a. &lt;img src = "&lt;?php print check_url($image_path) ?&gt;" /&gt;`
b. &lt;img src = "&lt;?php print check_plain($image_path) ?&gt;" /&gt;
c. &lt;img src = “&lt;?php print htmlspecialchars($image_path) ?&gt;” /&gt;
d. &lt;img src= “&lt;?php print strip_tags($image_path)?&gt;” /&gt;
check_url basically checks for dangerous protocols in the url and escapes any special characters as HTML entities for output. Normally it's not needed unless outputting a raw external / absolute URL. For relative URLs, Drupal adds the base url automatically.

better to use first(a) option.