Answers.Body: <p>It appears that Craft filters out <code>&lt;span&gt;</code> tags by default.</p>
  
  <p>You can control this in two ways:</p>
  
  <ol>
  <li><p>By disabling the "<em>Clean up HTML</em>" setting applied to the custom field</p>
  
  <p><a href="https://i.sstatic.net/FS5MI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FS5MI.png" alt="enter image description here"></a></p></li>
  <li><p>For more control, you can create your own custom redactor config JSON file. It's discussed in the docs here:<br>
  <a href="https://craftcms.com/docs/rich-text-fields#redactor-configs" rel="nofollow noreferrer">https://craftcms.com/docs/rich-text-fields#redactor-configs</a></p></li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-01T05:07:40.793Z
Answers.LastActivityDate: 2016-08-01T05:07:40.793Z
Answers.UserDisplayName: Simon East
Body: <p>Is there any way to add <code>&lt;span&gt;</code> tags to Redactor II or the Redactor I plugin - would like to upgrade a site to latest version of Craft which had Redactor I and the <a href="https://github.com/aelvan/RedactorStyles-Craft" rel="nofollow">https://github.com/aelvan/RedactorStyles-Craft</a> plugin.</p>
  
  <p>The site has some tags like <code>&lt;span class="blue-color"&gt;</code> etc.</p>
  
Tags: <redactor><plugin-redactorstyles>
Title: Use <span> in Redactor
ThreadText: # Use <span> in Redactor
  
  (Asked by: username_0 on 2016-06-17)
  
  Is there any way to add `<span>` tags to Redactor II or the Redactor I plugin - would like to upgrade a site to latest version of Craft which had Redactor I and the <https://github.com/aelvan/RedactorStyles-Craft> plugin.
  
  The site has some tags like `<span class="blue-color">` etc.
  
  **Tags:** redactor, plugin-redactorstyles
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-08-01. Score: 2
  
  It appears that Craft filters out `<span>` tags by default.
  
  You can control this in two ways:
  
  1. By disabling the "*Clean up HTML*" setting applied to the custom field
  
     [![enter image description here](https://i.sstatic.net/FS5MI.png)](https://i.sstatic.net/FS5MI.png)
  2. For more control, you can create your own custom redactor config JSON file. It's discussed in the docs here:  
     <https://craftcms.com/docs/rich-text-fields#redactor-configs>
  
  
  ---
  
  