Please don't mind if it's a simple question. I want to compare two strings but one string(Pates de L'Ile
) contains this '
which causes an error. Please check the code below
<apex:outputPanel rendered="{!(oppli.Product2.family =='Pates de L'Ile' && rowNum == 1)}" style="margin-left:10px" >
<apex:image value="{!$Resource.PatesdeLIle}" width="180" height="100"/>
<apex:variable var="rowNum" value="{!rowNum + 1}"/>
</apex:outputPanel>
This code oppli.Product2.family =='Pates de L'Ile'
throws error
Error: EL Expression Unbalanced: ...
{!(oppli.Product2.family =='Pates de L'Ile' && rowNum == 1)}
So how to compare String if its contain this '