CasparCG / client

Client software primarily used with the CasparCG Server software for audio and video playout, to control graphics and recording, but it can also be used for other tasks within television broadcast.

Home Page:https://casparcg.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escaping 'newline' when sending XML/JSON to HTML template

jondezwaan opened this issue · comments

When sending XML to flash templates, we're using CSV data regularly, which works well in the client. However, when I try to send the same data to an HTML template, JavaScript returns an error, concerning an illegal character, which is the newline.
Is it possible for the server or client to escape the newline character automatically, because escaping a 30 line CSV sheet manually, is quite cumbersome.

The same problem happens with ", which is especially painful when working with a template that receives json.