1

I embedded a YouTube video inside a "News" node. The input format in use is Full HTML.

When node is saved, the ampersand symbol in &wmode=Opaque is substituted for &wmode=Opaque.

Is it possible to prevent the ampersand in the URLs of embedded YouTube videos is encoded as HTML entity?

1

2 Answers 2

2

Try disabling the HTML corrector on the text format. Also, though, I don't think URL-encoding amphersands in URLs actually breaks them. & should work as a query string parameter separator as well. If not, though, see my suggestion :)

1

I haven't tried yet but I can give you a clue. This could be a ckeditor issue or what editor may use (tinymce etc..): try to make sure you have a button like view source added to your editor button grid. Then paste the youtube link in view source mode.

Ampersands in HTML are encoded as & That is, this is correct HTML.

If you think this won't work you need to go one step further and to display the content as plain text.

You need to edit your Full HTML input format: config/content/formats or from Configuration > Content Authoring > Text Formats > Configure and check Display any HTML as plain text or Convert URLs into links

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.