Answers.Body: <p><em>I'm assuming you're using the default mailing Ux, not mosaico</em></p>
  
  <p>The default editor is wysiwyg, if you want to put html tags, click on the view source icon, and paste the html code you want. </p>
  
  <p>You can switch back to wysiwyg to see the result.</p>
  
  <p>As for the images, be aware that quite a few recipients aren't going to display the image (for privacy reasons), so you should consider putting an alt text and dimensions (width and height) on your img tag</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-29T09:29:47.660Z
Answers.Text: Thanks for your response! The newsletter is actually generated via another CMS and sent out through Civi on Drupal. All images have alt tags and height/width set on them. The code is generated perfectly fine until it gets passed through Civi and then seemingly random images get their tags converted to entities. Is it possible this is an SMTP service issue?
Answers.UserDisplayName: Drew
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-29T12:05:57.150Z
Answers.Text: Hi, unless you have a weird smtp server, it shouldn't touch the content at all. What do you mean by generating via another CMS? are you using civicrm api or copy/pasting?
Answers.UserDisplayName: Xavier
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-27T14:40:12.860Z
Answers.LastActivityDate: 2018-06-27T14:40:12.860Z
Answers.UserDisplayName: Xavier
Body: <p>we're having an issue with newsletters being sent out with broken images due to the opening and closing tags being converted to HTML entities.</p>
  
  <p>e.g.
  <code>&lt;img src="foo.jpg" /&gt;</code> is sent out as: <code>&amp;lt; img src="foo.jpg" /&amp;gt;</code></p>
  
  <p>We don't have control over the CiviCRM install however it's running on Drupal 7. </p>
  
  <p>I'm wondering if this is a simple fix I could instruct a client on doing themselves or if it will require more work.</p>
  
  <p>Any insights would be greatly appreciated, thanks!</p>
  
Tags: <drupal><issues><civicrm-entity><html>
Title: CiviCRM Converting HTML tag to Entity
ThreadText: # CiviCRM Converting HTML tag to Entity
  
  (Asked by: username_0 on 2018-06-27)
  
  we're having an issue with newsletters being sent out with broken images due to the opening and closing tags being converted to HTML entities.
  
  e.g.
  `![](foo.jpg)` is sent out as: `< img src="foo.jpg" />`
  
  We don't have control over the CiviCRM install however it's running on Drupal 7.
  
  I'm wondering if this is a simple fix I could instruct a client on doing themselves or if it will require more work.
  
  Any insights would be greatly appreciated, thanks!
  
  **Tags:** drupal, issues, civicrm-entity, html
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-27. Score: 1 | Accepted answer
  
  *I'm assuming you're using the default mailing Ux, not mosaico*
  
  The default editor is wysiwyg, if you want to put html tags, click on the view source icon, and paste the html code you want.
  
  You can switch back to wysiwyg to see the result.
  
  As for the images, be aware that quite a few recipients aren't going to display the image (for privacy reasons), so you should consider putting an alt text and dimensions (width and height) on your img tag
  
  > **Comments:**
  > **username_0**: Thanks for your response! The newsletter is actually generated via another CMS and sent out through Civi on Drupal. All images have alt tags and height/width set on them. The code is generated perfectly fine until it gets passed through Civi and then seemingly random images get their tags converted to entities. Is it possible this is an SMTP service issue?  
  > **username_1**: Hi, unless you have a weird smtp server, it shouldn't touch the content at all. What do you mean by generating via another CMS? are you using civicrm api or copy/pasting?  
  
  ---
  
  