First of all, there is no image directive. To include files from the media directory, use the media template tag (double quotes are fine):

&lt;img src="{{media url="wysiwyg/img.ext"}}" /&gt;


If you see the markup as is in the frontend, this may be caused


either by the WYSIWYG editor
or by your theme,


converting HTML special characters to HTML entities, e.g. &lt; becomes &amp;lt;. You may check the description stored in the database. If characters are already converted there, it's likely an issue during collection of data. Otherwise check your frontend display.

<img src="{{media url="someurl"}}"> results in broken url & wont get parsed
here is my javascript:

var json = '{"GetReportIdResult":[{"bulan":"4","total":"1728","type":"CHEESE1K","uang":"8796383"},{"bulan":"4","total":"572476","type":"ESL","uang":"5863408410"},{"bulan":"4","total":"33507","type":"WHP","uang":"235653242"},{"bulan":"5","total":"4761","type":"CHEESE1K","uang":"134877865"},{"bulan":"5","total":"245867","type":"UHT","uang":"1446787280"},{"bulan":"5","total":"47974","type":"WHP","uang":"631929807"},{"bulan":"6","total":"5762","type":"CHEESE1K","uang":"293393832"},{"bulan":"6","total":"236803","type":"UHT","uang":"2219506085"},{"bulan":"6","total":"24853","type":"WHP","uang":"386175022"}]}';
obj = JSON.parse(json);
var arrayobj = obj.GetReportIdResult.length;
alert (arrayobj);


I want to count how many type in the same bulan value, (e.g. there are 3 type = CHEESE1K, UHT, and ESL  in bulan = 4)

how to do that?
