Thanks for the suggestion Bjartur, but unfortunately that's not an option in the usecase. Data is parsed using Freemarker (a template language) and can't be included using a <script src=""> tag.
-- Hay On Tue, Mar 15, 2011 at 10:15 PM, Bjartur Thorlacius <svartma...@gmail.com> wrote: > On 3/15/11, Hay (Husky) <hus...@gmail.com> wrote: >> Hi everyone, >> what would be the 'preferred' way to embed custom hierarchical data in >> a HTML document? >> > You should also consider passing the data along with the script and HTML, > rather than embedding it in the markup. This may save you from headaches > stemming from the data being parsed as HTML. >