Search code examples
htmldrupalfckeditorhtml-entities

How can I get FCKEditor in Drupal to stop re-escaping my HTML?


I am creating a block and using the FCKEditor rich text input box. I switch to Source mode and enter in the following HTML:

<img src="http://test.com/image.png" alt="an image" />

I check to confirm that input format is set to "Full HTML" and press Save. Upon loading my site, I discover that the HTML in FCKEditor's Source view is now:

<p><img alt="\&quot;an image" src="\&quot;http://test.com/image.png\&quot;" /></p>

Obviously that prevents the image from rendering properly since the browser sees the path to the image as:

"http://test.com/image.png"

Does someone know how to help?


Solution

  • Quick workaround could be to not use the quotes since it seems to be adding them in anyway. Example:

    <img src=http://site.com/image alt=alt text>