How can I add line breaks into my event title in json
        Posted  
        
            by Ami Mahloof
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ami Mahloof
        
        
        
        Published on 2010-05-11T15:00:54Z
        Indexed on 
            2010/05/11
            15:04 UTC
        
        
        Read the original article
        Hit count: 302
        
fullcalendar
|jQuery
one thing i can not get straight is the ability to add html without it being escaped or actually creating new lines
here's my json:
{ "id": 30, "title": "Basics \n Awesome Abs & Butt Blast \n Danielle B", "start": "2010-05-11T08:00:00-04:00", "end": "2010-05-11T08:30:00-04:00", "allDay": false }
and here's the code for it: [ <% @events.each do |e| %> { "id": <%= e.id -%>, "title": "
<%= e.event_template.level %>
<%= e.monqi_class.title %>
<%= e.instructor.last_initial %>
", "start": "<%= e.start_date.iso8601 %>", "end": "<%= e.end_date.iso8601 %>", "allDay": false } <%= @events.last == e ? "" : "," %> <% end -%> ]so I am trying to have inside an even 3 lines, (level, class title, and instructor)
the problem is it's getting escaped so the charcters are not being parsed by html
can you please help me with that?
Thanks a lot
Ami
© Stack Overflow or respective owner