此代码以字符串格式存储阶段名称,但是其中一个值包含&
,因此它通过替换字符串值来显示&
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 &'