raw html

Raw html in your content

Two things are preventing you to put raw html in your content:

  • The editor, in our case CKEditor
  • The filter Drupal uses when displaying content

Here a recipe to allow raw HTML using 'Full HTML' mode:

How to handle CKEditor

Configuration -> CKEditor -> Full->edit -> ADVANCED CONTENT FILTER -> check 'Disabled'

Now CKEditor in Full HTML mode, will not remove your HTML.

How to handle Drupal's filter

Configuration -> Text Formats -> Full HTML->configure -> uncheck 'Limit allowed HTML tags'

Test

Enter HTML using 'plain text editor'. Test with this snippet:

<script>alert("Hallo");</script>