Ignore:
Timestamp:
10/03/07 21:40:33 (5 years ago)
Author:
hverton
Message:

More xhtml fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/newsletters/php-files/modules/newsletters/newsletters.php

    r836 r865  
    315315    $content = str_replace("{:DATE:D:}", "<span style='font-family:monospace;color:red;font-size:12px'>".showdate('%d-%m-%Y')."</span>", $content); 
    316316    $content = str_replace("{:DATE:T:}", "<span style='font-family:monospace;color:red;font-size:12px'>".showdate('%T')."</span>", $content); 
    317     $variables['html'] = str_replace("{:DATE:}", "<span style='font-family:monospace;color:red;font-size:12px'>".showdate('shortdate')."</span>", $content); 
     317    $content = str_replace("{:DATE:}", "<span style='font-family:monospace;color:red;font-size:12px'>".showdate('shortdate')."</span>", $content); 
     318    // convert &, htmlentities is way to strict for this! 
     319    $variables['html'] = str_replace('&', '&amp;', str_replace('&amp;', '&', $content)); 
     320 
    318321    $template_panels[] = array('type' => 'body', 'title' => $subject, 'name' => 'modules.newsletters.preview', 'template' => '_custom_html.tpl'); 
    319322    $template_variables['modules.newsletters.preview'] = $variables; 
Note: See TracChangeset for help on using the changeset viewer.