How to add the new line in Salesforce Custom Label

Create a new Custom Label using below path:

Under Setup-> Build -> Create -> Custom Labels -> Click New and create a new custom Label called ‘With Line Break’


Add the Value like:

Thanks & Regards, <br/> Team <br/>
Testing by <br/>

and Save it.

How to Use the Custom Label in Visualforce Page:

<apex:outputText value=”{!$Label.With_Line_Break}” escape=”false” /> make sure escape=”false”

Results should be like below:


Written by 

Salesforce MVP | Lightning Champion | 17x Salesforce Certified | Application Architect | 7x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *