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
Sagarika RoutSagarika Rout 

Unwanted special characters in RTF Field

Hi All ,
I have two RTF fields, 1 is Description , 2nd is Temporarly Description
I have a workflow which is updating Values of Temporarly Description with Description.
Problem: If Description contains Special characters like (‘ ,”,&,<,>,^) , after updating  field Temporarly Description. Special characters are getting replaced with different characters (for eg: ‘ - &quot, &-&amp).
Can anyone suggest how to get rid of this extra characters.

Thanks,
Sagarika
PratikPratik (Salesforce Developers) 
Hi Sagarika,

I tried reproducing the issue but the special characters are apperainf properly through workflow update.

User-added image

Can you please check the field type once and try it.

You can also refer to known issue:
http://success.chatter7bk.com/issues_view?id=a1p30000000T3gZAAS

Thanks,
Pratik 
Sagarika RoutSagarika Rout
Hi Pratik ,

Thanks For your replay!!
If you will update a long text field with rich text , then it will remove all the html tags.. but the problem here is , it will encode all the special characters.
you can reproduc this by below procedure
1. create a RTF and long text Fiele
2. Create a workflow  and field update , which will update long text area field with RTF field data.
3. Enter some data with special character and html tags encoding
any workarround , please let me know !!

Regards
Sagarika