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
dke01dke01 

String.Replace

Is there a way I can so a String.replace('old', 'new')   with in VF?  Not using a controller

 

Does a output panel allow this?

 

What I am trying to do is replace/escape  newlines chars

bob_buzzardbob_buzzard

You can replace characters on the page using the SUBSTITUTE function, e.g.

 

{!SUBSTITUTE(Opportunity.Name, 'i', 'e')}

 

When I do the above, an opportunity name of 'Price Match' is displayed as 'Prece Match'.

 

 

parthipan francisparthipan francis
thanks Mr.bob it'z could be work on nice and very useful for me.


Thanks.