Forum: Redcloth Issue with HTML embed code in Redcloth 4.0.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Tom T. (Guest)
on 2008-10-02 19:12
(Received via mailing list)
Hi all,

I'm having an issue with HTML embed code in Redcloth 4.0.3.

The following embed code is part of some textile that is being
rendered with the this command:

output = RedCloth.new(text, [:no_span_caps]).to_html(:textile)

<embed
src="http://demo.assetbank.co.uk/assetbank-standard/too...
" width="320" height="268" scale="scale" bgcolor="111111"
type="application/x-shockwave-flash" allowFullScreen="true"
allowScriptAccess="always" allowNetworking="all"
pluginspage="http://www.macromedia.com/go/getflashplayer
"></embed>

This code is completely escaped, with no trace of it in the output.
However, if I paste it on the same line as some other text, or with
text inside the embed tag, it outputs correctly.

This is embed code <embed
src="http://demo.assetbank.co.uk/assetbank-standard/too...
" width="320" height="268" scale="scale" bgcolor="111111"
type="application/x-shockwave-flash" allowFullScreen="true"
allowScriptAccess="always" allowNetworking="all"
pluginspage="http://www.macromedia.com/go/getflashplayer
"></embed>

or

<embed
src="http://demo.assetbank.co.uk/assetbank-standard/too...
" width="320" height="268" scale="scale" bgcolor="111111"
type="application/x-shockwave-flash" allowFullScreen="true"
allowScriptAccess="always" allowNetworking="all"
pluginspage="http://www.macromedia.com/go/getflashplayer
">i am inside embed code</embed>

The above both render correctly.

I presume this is a bug with Textile? Please let me know if there's a
better place to file this, or if you need anymore information.

Cheers,

Tom
This topic is locked and can not be replied to.