LiquidPlanner Classic Forum

Ask a Question
ANSWERED

How can I post comment as HTML content ?

*Posted on behalf of a customer. Original posting date 2015-03-11* I want to write the following comment into the LP from the rest API post function, in my case comment is creating but formatting is breaking. I want to write exact same formatted way. Please help me how can maintain format of the comment ? original format of comment: E-mail content (first draft, eager to do some changes, improvements etc.): Invitation e-mail, send to someone who was added by manager or HR admin: /e-mail_name/ Invitation to [App_name] /e-mail_text/ Hi [user_first_name]! Please click link below to register in [App_name]: <link>[http_address]</link> [App_name] allows you to check and book your vacation days quick and easily. Best regards, [App_name] Team Example: Invitation to Vacation App Hi Adrian! Please click link below to register in Vacation App: https://vacation.forlagshuset.no/register?adsafskjhfasdf Vacation app alows you to check and book your vacation days quick and easily. Best regards, Vacation App Team E-mail send to the manager when user book vacations: /e-mail_name/ Vacation request - [user_first_name;user_last_name] /e-mail_text/ [user_first_name;user_last_name] booked [vacation_type] in: [start_date]-[end_date]. /if vacation type has limit/ He still has [day_number] [vacation_type] days left. If you accept this request, it will be limited to [day number] days. /if there are comments/ Comments: [user],[date]: [comment] [user],[date]: [comment] [user],[date]: [comment] <link> ACCEPT REQUEST </link> <link> REFUSE REQUEST </link> <link> add comment </link> <link>Go to [app_name]</link> Example: Vacation request - Adrian X Adrian X booked paid vacation: 23.08.2014 - 28.08.2014 He still has 17 paid vacation days left. If you accept this request, it will be limited to 14 days. When i am writing comment in the LP then the format become as following which i don't want. E-mail content (first draft, eager to do some changes, improvements etc.): Invitation e-mail, send to someone who was added by manager or HR admin: /e-mail_name/ Invitation to [App_name] /e-mail_text/ Hi [user_first_name]! Please click link below to register in [App_name]: <link>[http_address] [App_name] allows you to check and book your vacation days quick and easily. Best regards, [App_name] Team Example: Invitation to Vacation App Hi Adrian! Please click link below to register in Vacation App: https://vacation.forlagshuset.no/register?adsafskjhfasdf Vacation app alows you to check and book your vacation days quick and easily. Best regards, Vacation App Team E-mail send to the manager when user book vacations: /e-mail_name/ Vacation request - [user_first_name;user_last_name] /e-mail_text/ [user_first_name;user_last_name] booked [vacation_type] in: [start_date]-[end_date]. /if vacation type has limit/ He still has [day_number] [vacation_type] days left. If you accept this request, it will be limited to [day number] days. /if there are comments/ Comments: [user],[date]: [comment] [user],[date]: [comment] [user],[date]: [comment] <link> ACCEPT REQUEST <link> REFUSE REQUEST <link> add comment <link>Go to [app_name] Example: Vacation request - Adrian X Adrian X booked paid vacation: 23.08.2014 - 28.08.2014 He still has 17 paid vacation days left. If you accept this request, it will be limited to 14 days. Manually i am copy pasting the comment then the comment is writing as same as i want. But from REST api its breaking expectation. I have posted question at stackoverflow also, see the link below. http://stackoverflow.com/questions/28963403/how-to-serialize-a-long-string-and-maintain-the-formatting?noredirect=1#comment46180125_28963403
ANSWERED
ANSWERED
ANSWERED
ANSWERED