function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naresh Krishna.ax1176Naresh Krishna.ax1176 

How to replace a specified string with empty string in visualforce page ?

Hi All,

 

I can able replace a string with empty string in controller with String.replace().

 

Is there any way to replace a specified string with empty string directly in visualforce page ?

 

Ex:-

String sample = 'Sample_Program';

 

I need to display the sample variable as 'Program' only.

 

Please help me with the above to do the logic in the visualforce page.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
Naresh Krishna.ax1176Naresh Krishna.ax1176

Got the solution :)

 

Using SUBSTITUTE method we can do it.