function _simplenews_html_replace in Simplenews 6
Same name and namespace in other branches
- 6.2 includes/simplenews.mail.inc \_simplenews_html_replace()
- 7.2 includes/simplenews.mail.inc \_simplenews_html_replace()
- 7 includes/simplenews.mail.inc \_simplenews_html_replace()
Helper function for simplenews_html_to_text().
List of preg* regular expression patterns to search for and replace with
1 call to _simplenews_html_replace()
- simplenews_html_to_text in ./
simplenews.module - HTML to text conversion for HTML and special characters.
File
- ./
simplenews.module, line 2165 - Simplnews node handling, sent email, newsletter block and general hooks
Code
function _simplenews_html_replace() {
return array(
'/"/i' => '"',
'/>/i' => '>',
'/</i' => '<',
'/&/i' => '&',
'/©/i' => '(c)',
'/™/i' => '(tm)',
'/“/' => '"',
'/”/' => '"',
'/–/' => '-',
'/’/' => "'",
'/&/' => '&',
'/©/' => '(c)',
'/™/' => '(tm)',
'/—/' => '--',
'/“/' => '"',
'/”/' => '"',
'/•/' => '*',
'/®/i' => '(R)',
'/•/i' => '*',
'/€/i' => 'Euro ',
);
}