Using HTML tag(e.g. line break) in Custom Label

Custom Label is a really useful feature in Salesforce, not only can be edited after deployed, but also can be used for making an app multilingual with Translation Workbench.

If you want to use HTML tag with it on Visualforce Page, e.g. <br /> tag, the only thing you need to do is using an unescaped Apex:outputText , as the following:

VF Page

Custom Label

The interface of Custom Label looks like the below: Custom Label  LineBreakText   Salesforce   Developer Edition
And the Metadata generated by Salesforce looks like the below :

Enjoy it!

Related Post

Line break character may be escaped by JS in VF Pa... The line break character may be changed, if it is sent from Visualforce Page with Ajax(Such as apex:commandLink and apex:actionfunction). Let me show you a sample first. Sample Code Visualforce Page Apex Class
The usage of apex:param in Visualforce Page tag is used to pass values from JavaScript to an Apex controller,it can only be used with the folloing parent tags.   •   •   •   • ...
Display DateTime with TimeZone in Visualforce Page In Salesforce,Date and Date/Time values are stored in GMT,and a GMT time will be outputed when we use apex:outputText tag. e.g. Result ※Time Zone : (GMT+09:00) Japan Standard Time (Asia/Tokyo) As we know,we can not determine a user’s time zone...