How to break the text of long text area field in vf page

Viewed 1215
1 Answers

It's not really a Visualforce-specific question, consider changing the tags to CSS and you'll attract experts. Lots of options you can experiment with, have you seen these?

if the text contains <br> or newlines you could even wrap it in <pre> tags...

What's your VF page structure? Do you use <apex:outputField> for that or <apex:pageBlockSectionItem>? these should enforce some wrapping too. If you have raw {!myField} in the page then well, wrapping (and protecting from XSS injection!) is on you...

Related