Displaying line breaks in text
-
Hello ~
I’m trying to figure out how to get line breaks in text (represented as “\n”) to be handled in the output. For example, the json contains value “description”:”Text line one. \n Text line two.”
The shortcode displays the description output as:
Text line one. Text line two.When it should be displayed as:
Text line one.
Text line two.How can I get \n to be recognized as a line break in the output?
Thanks.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Displaying line breaks in text’ is closed to new replies.