Menu

#4 Emailed news item contains HTML nbsp instead of actual CR

open
nobody
None
5
2008-01-13
2008-01-13
Chris
No

See attached example. Not sure how this could be fixed as the emails are sent in plain text, hence the display of the item as HTML source including the layout codes.

Discussion

  • Chris

    Chris - 2008-01-13
     
  • Chris

    Chris - 2008-01-13

    Logged In: YES
    user_id=1923046
    Originator: YES

    Simon,
    I've had a look at class.phpmailer.php and can see the strip_tags in the sendNewsAlert function which won't strip html entities so the code may need to also use html_entity_decode() to convert nbsp etc. to their applicable characters for text-email.
    I'm new to PHP so I thought I'd run any fixes past you until I become more familiar with the code, PHP and Subversion.
    thanks,
    Chris

     

Log in to post a comment.