&amp替换顶点字符串中的字符串.unescapeHTML4()无法正常工作

时间:2020-04-01 14:24:49

标签: salesforce apex

此代码以字符串格式存储阶段名称,但是其中一个值包含&,因此它通过替换字符串值来显示&amp

string stages = ''; //string type stages variable
for (string s :stagenames ){ //loop
    stages = +stages+s+':'; //assigning value to  the stages
    System.debug(stages.unescapeHTML4()); //getting all  the values  inside it one by one
}//but one string is jack & Jill so instead of showing actual string it just showed me 'jack &amp'

0 个答案:

没有答案
相关问题