Reputation: 2907
Currently I am using ckEditor with ckFinder in Symfony. When I save a form the HTML is saved (seemingly so) properly in the database. When I query through symfony and retrieve the results, the html tags are removed and replaced. Can I prevent this? Below is an example of what is in the database. I tried putting in what the HTML Shows but the current eidtor translates it
Database shows:
<p> Test</p> <p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="movie" value="/uploads/flash/test1.flv" /><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="/uploads/flash/test1.flv" type="application/x-shockwave-flash"></embed></object></p>
Actaul HTML (Note I replaced all ; with __ as the editor was translating it to the the above otherwise):
<__p>__ Test<__/p>__ <__p>__ <__object classid="__clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"__ codebase="__http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"__>__<__param name="__quality"__ value="__high"__ />__<__param name="__movie"__ value="__/uploads/flash/test1.flv"__ />__<__embed pluginspage="__http://www.macromedia.com/go/getflashplayer"__ quality="__high"__ src="__/uploads/flash/test1.flv"__ type="__application/x-shockwave-flash"__>__<__/embed>__<__/object>__<__/p>__
Upvotes: 0
Views: 919