I have a JSON object with a long string that I want to display. The string looks like this:
"String":"<p>Lorem Ipsum is simply dummy text of the printing and typesetting
industry. Lorem Ipsum has been the industry's standard dummy text ever since
the 1500s, when an unknown printer took a galley of type and scrambled it to
make a type specimen book.</p>"
To load this value, I am using the following code:
data-ng-bind-html="getHtml(selectedCategoryData[indexOfSelectedData].String)"
The issue I am facing is that the entire string is displayed in a single line without any line breaks. This causes the text to be hidden when the device width ends.
I would like the string to autofit so that it automatically creates a line break when the device width ends, similar to how a normal <p>
tag works.
Does anyone have any ideas on how I can achieve this?