I attempted to add a Twitter widget to a block. I get no output when I add that code to a block (appears as just an empty block). I am using a Normal Block.
See example on my site, all the way down at the bottom right, should see a block named "Twitter" :
Text Formatted Code
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 'auto',
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: false,
timestamp: true,
avatars: false,
behavior: 'all'
}
}).render().setUser('thatlinuxbox').start();
</script>
The issue appears to be with the curly braces. When I save the block, the curly brace gets converted to a web-friendly representation.
e.g. When I view page source in my browser, the third line in the script section looks like this instead: