You are here

public function mimemail_compress::remove_unprocessable_tag in Mime Mail 7

Same name and namespace in other branches
  1. 6 modules/mimemail_compress/mimemail_compress.inc \mimemail_compress::remove_unprocessable_tag()

Removes unprocessable tags from the code (does not remove actual nodes).

There are some HTML tags that DOMDocument cannot process, and will throw an error if it encounters them.

File

modules/mimemail_compress/mimemail_compress.inc, line 60
Converts CSS styles into inline style attributes.

Class

mimemail_compress
Compresses HTML and CSS into combined message.

Code

public function remove_unprocessable_tag($tag) {
  if (($key = array_search($tag, $this->unprocessable_tags)) !== FALSE) {
    unset($this->unprocessableHTMLTags[$key]);
  }
}