You are here

function _views_send_strip_html in Views Send 8

Returns the textual content from a HTML string after stripping tags, trimming and decoding HTML entities.

Typically used when handling data from getField that returns HTML (with entities). We have to sanitize the data before using it in headers.

3 calls to _views_send_strip_html()
views_send_config_form_validate in ./views_send.module
Validation callback for the "configure" step.
views_send_confirm_form in ./views_send.module
Implements the form for the "confirm" step.
views_send_queue_mail in ./views_send.module
Assembles the email and queues it for sending.

File

./views_send.module, line 1122
The Views Send module.

Code

function _views_send_strip_html($html) {
  return html_entity_decode(trim(strip_tags($html)), ENT_QUOTES);
}