I’m working with some json in a looper.
One of my fields looks like this:
"hostDetails": "No default text\n- list 1\n- list 2\n\nWe like to have line breaks",
If I just call the field, {{dc:looper:field key="data.hostDetails"}} then it outputs a single block of text without the \n characters.
If I add in {{dc:looper:field key="data.hostDetails" type="json" pretty_print="1"}} It outputs the \n on the page. (It does that without the pretty_print as well.)
Is there a built in way to get it to translate those line break characters, or should I get with the folks giving me the json for another way?