Topic: Authorizing Flash objects?
Hello,
Very good job !
Sorry, I speak very little English :/ (Thanks Google translate )
To purify the HTML that I recover by XML script I tested several (tidy, htmlpurifier, ...) and each time the code was valid W3C output truncated but sometimes a portion of the content removed and ultimately meaningless.
I am pleased to find that filters htmLawed without breaking the content that I get by XML !
Question : How to allow flash ?
Original code :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="600" height="600">
<param name="movie" value="http://the host.ltd/file.swf"/>
<param name="type" value="application/x-shockwave-flash" />
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer/" />
<param name="menu" value="false" />
<embed src="http://the host.ltd/file.swf" menu="false" type="application/x-shockwave-flash" width="600" height="600" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>After htmLawed parse :
<param name="movie" value="http://the host.ltd/file.swf" />
<param name="type" value="application/x-shockwave-flash" />
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer/" />
<param name="menu" value="false" />I would like this type of code is not filtered (leaving the original code, with the object and embed tags).
Solution exists please ?
Thank you in advance for your help